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  
Name: andi mery <contact>
Classes: 1 package by
Country: Austria Austria
Age: 39
All time rank: 412525 in Austria Austria
Week rank: 164 Up1 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 (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

  Files folder image Files (14)  /  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 (14)  /  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

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:1224