Skip to content
A feed parser for PHP.
Branch: master
Clone or download
kellan Merge pull request #4 from ASNight/patch-1
split is deprecated, use explode
Latest commit 04d2a88 Dec 21, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
extlib
htdocs Initial commit. 0.72 release brought over from Sourceforge. Nov 26, 2010
scripts take a url on the command line Nov 26, 2010
AUTHORS Initial commit. 0.72 release brought over from Sourceforge. Nov 26, 2010
CHANGES Initial commit. 0.72 release brought over from Sourceforge. Nov 26, 2010
ChangeLog Initial commit. 0.72 release brought over from Sourceforge. Nov 26, 2010
INSTALL Initial commit. 0.72 release brought over from Sourceforge. Nov 26, 2010
NEWS
README.markdown a bit of history Nov 26, 2010
TROUBLESHOOTING
cookbook
rss_cache.inc Initial commit. 0.72 release brought over from Sourceforge. Nov 26, 2010
rss_fetch.inc dump the version Nov 26, 2010
rss_parse.inc Update rss_parse.inc Dec 20, 2013
rss_utils.inc Initial commit. 0.72 release brought over from Sourceforge. Nov 26, 2010

README.markdown

MagpieRSS - a simple RSS integration tool

Probably the most popular PHP RSS parser, ever. Released in 2002, roughly 500k direct downloads, plus uncounted downloads as part of open source projects like Wordpress.

Additionally this code was written when PHP 4.1.2 was the state of the art, and it shows.

USAGE

require_once(rss_fetch.inc);
$url = $_GET['url'];
$rss = fetch_rss( $url );

echo "Channel Title: " . $rss->channel['title'] . "<p>";
echo "<ul>";
foreach ($rss->items as $item) {
	$href = $item['link'];
	$title = $item['title'];
	echo "<li><a href=$href>$title</a></li>";
}
echo "</ul>";

DESCRIPTION

MapieRSS is an XML-based RSS parser in PHP.  It attempts to be "PHP-like",
and simple to use.

Some features include:

* supports RSS 0.9 - 1.0, with limited RSS 2.0 support
* supports namespaces, and modules, including mod_content and mod_event
* open minded [1]
* simple, functional interface, to object oriented backend parser
* automatic caching of parsed RSS objects makes its easy to integrate
* supports conditional GET with Last-Modified, and ETag
* uses constants for easy override of default behaviour 
* heavily commented
  1. By open minded I mean Magpie will accept any tag it finds in good faith that it was supposed to be here. For strict validation, look elsewhere.

GETTING STARTED

COPYRIGHT:

Copyright(c) 2002 kellan@protest.net. All rights reserved.
This software is released under the GNU General Public License.
Please read the disclaimer at the top of the Snoopy.class.inc file.
You can’t perform that action at this time.