asmaru / rss
2.0.1
2021-05-29 13:02 UTC
Requires
- php: >=7.4
- ext-dom: *
Requires (Dev)
- phpunit/phpunit: ^9.5.4
This package is auto-updated.
Last update: 2024-08-29 04:36:58 UTC
README
\asmaru\rss
\asmaru\rss
是一个简单的 RSS 写入器。此组件遵循 MIT 许可证。
使用方法
$rss = new RSS();
$rss->channel()->setTitle('The title');
$rss->channel()->setLink('http://example.org/');
$rss->channel()->setDescription('The description');
$item = $rss->channel()->createItem();
$item->setTitle('The item title');
$item->setLink('http://example.org/item');
$item->setDescription('The item description');
echo $rss;
安装
您可以直接通过 Composer 安装
$ composer require asmaru/rss
许可证
MIT 许可证