2017 © Pedro Peláez
 

library feedtcher

Gets ATOM and RSS Feeds

image

casivaagustin/feedtcher

Gets ATOM and RSS Feeds

  • Monday, February 15, 2016
  • by casivaagustin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Feedtcher

Library for fetch RSS and ATOM Feeds, (*1)

How to use it

Just add this library to your composer.json, or set the paths for your autoloader. Add PHRequests and HTML Purifier as dependency also., (*2)

And just do something like this in your code., (*3)

    $url = 'http://casivaagustin.com.ar/?feed=rss2'; 
    $feed = Feedtcher\Feedtcher::fetch($url);

This will return a Feed Object with a collection of Entries. Feed does not have all the possible entries from the feed, it just fetch., (*4)

  • Title
  • Description
  • Link
  • Date
  • Author

And Entries have, (*5)

  • Title
  • Description
  • Author
  • Date
  • Link

To get Feed fields just read as attributes., (*6)

  $feed->title ...
  $feed->link  ...

And for Entries use the feed object as array, (*7)

  $feed[0]->title ...
  $feed[0]->description ...
  $feed[0]->author ...

Works with RSS and ATOM., (*8)

That is all !, (*9)

The Versions

15/02 2016

dev-master

9999999-dev https://github.com/casivaagustin/feedtcher

Gets ATOM and RSS Feeds

  Sources   Download

MIT

The Requires

 

curl rest http atom rss

15/02 2016

1.0.2

1.0.2.0 https://github.com/casivaagustin/feedtcher

Gets ATOM and RSS Feeds

  Sources   Download

MIT

The Requires

 

curl rest http atom rss

27/01 2016

1.0.0

1.0.0.0 https://github.com/casivaagustin/feedtcher

Gets ATOM and RSS Feeds

  Sources   Download

MIT

The Requires

 

curl rest http atom rss