forked from dg/rss-php
-
Notifications
You must be signed in to change notification settings - Fork 1
Small and easy-to-use library for consuming RSS and Atom feeds
License
torne/rss-php
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
RSS & Atom Feeds for PHP (c) David Grudl, 2008 (http://davidgrudl.com) Introduction ------------ RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed Project at GoogleCode: http://rss-php.googlecode.com My PHP blog: http://phpfashion.com Requirements ------------ - PHP (version 5 or better) - enabled directive allow_url_fopen or cURL extension Usage ----- Download RSS feed from URL: $rss = Feed::loadRss($url); The returned properties are SimpleXMLElement objects. Extracting the information from the channel is easy: 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: $atom = Feed::loadAtom($url); Files ----- readme.txt - This file. license.txt - The license for this software (New BSD License). feed.class.php - The core RSS feed class source. load-rss.php - Example loading RSS feed. load-atom.php - Example loading Atom feed.
About
Small and easy-to-use library for consuming RSS and Atom feeds
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published