gemorroj / rss
rss parser
2.2.0
2023-07-03 17:32 UTC
Requires
- php: >=8.0.2
- ext-dom: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpunit/phpunit: ^9.6
README
Requirements:
- PHP >= 8.0.2
Installation:
composer require gemorroj/rss
Example:
<?php use Rss\Rss; $rss = new Rss('example.com rss', 'http://example.com', 'some description'); $rss->addItem( 'one item', 'http://example.com', 'some description', new \DateTime('yesterday') ); echo $rss->saveXML(); // rss xml // $rss->output(); // send rss to browser