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: 2025-04-29 02:05:56 UTC
README
\asmaru\rss
\asmaru\rss
is a simple RSS writer. This component is Licensed under MIT license.
Usage
$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;
Installation
You can install directly via Composer:
$ composer require asmaru/rss
License
MIT license