viktoras / rss-reader
A library to parse RSS feed
v1.0.0
2022-06-17 09:14 UTC
Requires
- php: ^7.4||^8
- ext-simplexml: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- pestphp/pest: ^1.21
- phpunit/phpunit: ^7||^8||^9||^10
- roave/security-advisories: dev-latest
- vimeo/psalm: ^4.22
README
PHP library to read RSS files.
Installation
composer require viktoras/rss-reader
Example
$reader = new Reader(file_get_contents('https://packagist.org/feeds/packages.rss')); echo $reader->getChannel()->getTitle() . PHP_EOL; foreach ($reader->getItems() as $item) { echo ' - ' . $item->getTitle() . PHP_EOL; }
Development
composer fmt
- Code formattingcomposer psalm
- Static checkcomposer test
- Tests