2017 © Pedro Peláez
 

library rss-php

RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed.

image

phpmycoder/rss-php

RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed.

  • Monday, February 24, 2014
  • by phpmycoder
  • Repository
  • 1 Watchers
  • 0 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 81 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

RSS & Atom Feeds for PHP

RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feeds., (*1)

It requires PHP 5.0 or newer with CURL extension or enabled allow_url_fopen and is licensed under the New BSD License. You can obtain the latest version from our GitHub repository or install it via Composer:, (*2)

php composer.phar require dg/rss-php

Usage

Download RSS feed from URL:, (*3)

$rss = Feed::loadRss($url);

The returned properties are SimpleXMLElement objects. Extracting the information from the channel is easy:, (*4)

echo 'Title: ', $rss->title;
echo 'Description: ', $rss->description;
echo 'Link: ', $rss->link;

foreach ($rss->item as $item) {
    echo 'Title: ', $item->title;
    echo 'Link: ', $item->link;
    echo 'Timestamp: ', $item->timestamp;
    echo 'Description ', $item->description;
    echo 'HTML encoded content: ', $item->{'content:encoded'};
}

Download Atom feed from URL:, (*5)

$atom = Feed::loadAtom($url);

(c) David Grudl, 2008 (http://davidgrudl.com), (*6)

The Versions

24/02 2014

1.2.2

1.2.2.0 https://github.com/phpmycoder/rss-php

RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed.

  Sources   Download

BSD-3

atom feed rss

24/02 2014

1.2.3

1.2.3.0 https://github.com/phpmycoder/rss-php

RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed.

  Sources   Download

BSD-3

atom feed rss

24/02 2014

dev-master

9999999-dev https://github.com/phpmycoder/rss-php

RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed.

  Sources   Download

BSD-3

atom feed rss

24/02 2014

1.2.0

1.2.0.0 https://github.com/phpmycoder/rss-php

RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed.

  Sources   Download

BSD-3

atom feed rss

24/02 2014

1.2.1

1.2.1.0 https://github.com/phpmycoder/rss-php

RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed.

  Sources   Download

BSD-3

atom feed rss

17/01 2014

v1.1

1.1.0.0 https://github.com/dg/rss-php

RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed.

  Sources   Download

BSD-3

atom feed rss

31/08 2012

v1.0

1.0.0.0 https://github.com/dg/rss-php

RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed.

  Sources   Download

BSD-3

atom feed rss