2017 © Pedro Peláez
 

library rss-client

A simple to use RSS client library.

image

desarrolla2/rss-client

A simple to use RSS client library.

  • Saturday, February 22, 2014
  • by desarrolla2
  • Repository
  • 0 Watchers
  • 0 Stars
  • 15,949 Installations
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 1 % Grown

The README.md

Warning !!

RSSClient will not be updated, you should consider migrating to FastFeed https://github.com/FastFeed/FastFeed, (*1)

RSSClient

RSSClient is a simple to use RSS library to fetch and use RSS feeds. RSSClient is very fast!, (*2)

Build Status Scrutinizer Quality Score Code Coverage, (*3)

Latest Stable Version Total Downloads Bitdeli Badge, (*4)

Formats Supported

Installation

With Composer

It is best installed it through packagist by including desarrolla2/rss-client in your project composer.json require:, (*5)

``` json "require": { // ... "desarrolla2/rss-client": "dev-master" }, (*6)


### Without Composer You can also download it from [Github] (https://github.com/desarrolla2/RSSClient), but no autoloader is provided so you'll need to register it with your own PSR-0 compatible autoloader. ## Usage ### Without Cache This example does not use any cache, so it probably will be too slow to be used on a website, you should implement your system cache, or use the cache system described below ``` php <?php use Desarrolla2\RSSClient\RSSClient; $client = new RSSClient(); $client->addFeeds( array( 'http://news.ycombinator.com/rss', 'http://feeds.feedburner.com/TechCrunch/', ), 'news' ); $feeds = $client->fetch('news');

With Cache

This example uses the cache implemented by desarrolla2/cache you must select the adapter depending on your needs, you can find all the info in the [Github repository] (https://github.com/desarrolla2/Cache)., (*7)

``` php <?php, (*8)

// It is important that you select and configure your cache adapter $client = new RSSClient(); $client->setCache(new Cache(new File('/tmp')));, (*9)


You can see how to configure desarrolla2/cache in its [README] (https://github.com/desarrolla2/Cache) The rest of the procedure is exactly the same as if you were using the client without cache. ``` php <?php $client->addFeeds( array( 'http://news.ycombinator.com/rss', 'http://feeds.feedburner.com/TechCrunch/', ), 'news' ); $feeds = $client->fetch('news');

Limiting the number of elements

You can use the second parameter of fetch to limit the number of elements, (*10)

``` php <?php, (*11)

$feeds = $client->fetch('news', 20);, (*12)

```, (*13)

Other

  • Do you need a [custom processor] (https://github.com/desarrolla2/RSSClient/blob/master/doc/custom-process.md) ?
  • API docs

Contact

You can contact with me on twitter., (*14)

The Versions

22/02 2014

dev-master

9999999-dev

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

The Development Requires

feed rss rss20 feed parser atom10

04/12 2013

v2.2.1

2.2.1.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

The Development Requires

feed rss rss20 feed parser atom10

11/11 2013

v2.2.0

2.2.0.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

The Development Requires

feed rss rss20 feed parser atom10

04/10 2013

v2.1.3

2.1.3.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

feed rss rss20 feed parser atom10

06/09 2013

v2.1.2

2.1.2.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

feed rss rss20 feed parser atom10

28/08 2013

v2.1.1

2.1.1.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

feed rss rss20 feed parser atom10

25/07 2013

v2.1.0

2.1.0.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

feed rss rss20 feed parser atom10

29/05 2013

v2.0.5

2.0.5.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

feed rss rss20 feed parser atom10

21/05 2013

v2.0.4

2.0.4.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

feed rss rss20 feed parser atom10

26/04 2013

v2.0.3

2.0.3.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

feed rss rss20 feed parser atom10

28/03 2013

v2.0.2

2.0.2.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

feed rss rss20 feed parser atom10

27/03 2013

v2.0.1

2.0.1.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

feed rss rss20 feed parser atom10

26/03 2013

v2.0.0

2.0.0.0

A simple to use RSS client library.

  Sources   Download

MIT

The Requires

 

feed rss rss20 feed parser atom10

28/02 2013

v1.1.2

1.1.2.0

A independent RSS client manager library.

  Sources   Download

MIT

The Requires

 

rss

13/12 2012

v1.0.2

1.0.2.0

A independent RSS client manager library.

  Sources   Download

MIT

The Requires

 

rss

12/12 2012

v1.0.1

1.0.1.0

A independent RSS client manager library.

  Sources   Download

MIT

The Requires

 

rss