PHP Classes

PHP RSS Feed Parser: Parse RSS XML feeds using plugin extensions

Recommend this page to a friend!
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 205 All time: 8,415 This week: 100Up
Version License PHP version Categories
feed-parser 1.5BSD License7.2XML, PHP 5, Parsers
Description 

Author

This package can parse RSS XML feeds using plugin extensions.

The main class parses the XML feed with SimpleXML and loads plugin classes from the plugins directory that will handle item elements of the different types of RSS feeds and their extensions.

It supports RSS 1.0, RSS 2.0 and Atom feeds. Plugins support RSS extensions core, content, dc, enclosure, media and SY.

Picture of andi mery
  Performance   Level  
Name: andi mery <contact>
Classes: 1 package by
Country: Austria Austria
Age: 38
All time rank: 411625 in Austria Austria
Week rank: 312 Up2 in Austria Austria Up

Details

Feed Parser

A generic PHP FeedParser library.

Very simple usage example

$feedparser = new \FeedParser\FeedParser();
$feed = $feedparser->parse(
    file_get_contents('http://feeds.bbci.co.uk/news/world/rss.xml')
);

if ($feed instanceof \FeedParser\Feed) {
    foreach ($feed->items as $feed_item)
    {
        echo $feed_item->getTitle() . PHP_EOL;
    }
}

  Files folder image Files  
File Role Description
Files folder imageFeedParser (4 files, 1 directory)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  FeedParser  
File Role Description
Files folder imagePlugin (8 files)
  Plain text file Base.php Class Class source
  Plain text file Feed.php Class Class source
  Plain text file FeedParser.php Class Class source
  Plain text file Item.php Class Class source

  Files folder image Files  /  FeedParser  /  Plugin  
File Role Description
  Plain text file Atom.php Class Class source
  Plain text file Content.php Class Class source
  Plain text file Core.php Class Class source
  Plain text file DC.php Class Class source
  Plain text file Enclosure.php Class Class source
  Plain text file Media.php Class Class source
  Plain text file Plugin.php Class Class source
  Plain text file SY.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:205
This week:0
All time:8,415
This week:100Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1216