PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 206 All time: 8,420 This week: 660Up
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  

 

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 (14)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:206
This week:0
All time:8,420
This week:660Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1226