пшилияев/дзен-рсс-аут

Yandex RSS的简单导出器

dev-main 2024-01-28 11:07 UTC

This package is auto-updated.

Last update: 2024-09-28 13:12:02 UTC


README

要求

php >= 8.0

安装

$ composer require pshilyaev/dzen-rss-out

使用

use Pshilyaev\DzenRssOut\FeedGenerator;
use Pshilyaev\DzenRssOut\ValueObjects\NewsItem;

require __DIR__ .'/vendor/autoload.php';

$feedGenerator = new FeedGenerator("Test channel", "https://yandex.ru", "ru");

$result = $feedGenerator->generateFeed([new NewsItem(
            'Article Title',
            'http://example.com/article',
            'Article Description',
            'Tue, 4 Jul 2023 04:20:00 +0300')]);

此PS包是在Otus课程中为教学目的创建的。