pshilyaev/lara-dzen-rss-out

用于 Yandex RSS 的简单 Laravel 导出器

1.0.1 2024-02-01 17:17 UTC

This package is auto-updated.

Last update: 2024-10-03 11:38:19 UTC


README

要求

php >= 8.0

安装

$ composer require pshilyaev/lara-dzen-rss-out

使用

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

$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 课程学习期间为了教学目的创建的。