PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of andi mery   PHP RSS Feed Parser   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP RSS Feed Parser
Parse RSS XML feeds using plugin extensions
Author: By
Last change:
Date: 5 years ago
Size: 382 bytes
 

Contents

Class file image Download

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;
    }
}