GithubHelp home page GithubHelp logo

isabella232 / magpierss Goto Github PK

View Code? Open in Web Editor NEW

This project forked from activecampaign/magpierss

0.0 0.0 0.0 77 KB

A feed parser for PHP.

Home Page: http://magpierss.sourceforge.net/

PHP 80.99% HTML 19.01%

magpierss's Introduction

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 [email protected]. 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.

magpierss's People

Contributors

kellan avatar asnight avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.