debril / feed-io-extended-rss
Extended RSS Support for feed-io
Installs: 499
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 2
pkg:composer/debril/feed-io-extended-rss
Requires
- php: >=7.1
- ext-dom: *
- debril/feed-io: ^4.7
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.4
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-02-05 21:44:24 UTC
README
Use this package if you want feed-io to support extended RSS.
Installation
composer require debril/feed-io-extended-rss
Usage
You'll use it exactly like feed-io the only difference being the class use to load the library:
<?php require './vendor/autoload.php'; $client = new \FeedIo\Adapter\Guzzle\Client(new GuzzleHttp\Client()); $logger = new \Psr\Log\NullLogger(); $feedIo = new \FeedIo\ExtendedFeedIo($client, $logger); $result = $feedIo->read('http://php.net/feed.atom'); $feed = $result->getFeed();
There's another difference: you can have access to all cool attributes defined in the Media RSS specifications whereas feed-io only feature the most common ones.
Credits
A very warm and big thanks to @azmeuk (Éloi Rivard) who wrote 99% of it.