debril/feed-io-extended-rss

This package is abandoned and no longer maintained. No replacement package was suggested.

Extended RSS Support for feed-io

v1.0.0-beta1 2020-10-04 14:44 UTC

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.