Recommend this page to a friend! |
Download |
Info | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
60% | Total: 206 | All time: 8,420 This week: 660 |
Version | License | PHP version | Categories | |||
feed-parser 1.5 | BSD License | 7.2 | XML, PHP 5, Parsers |
Description | Author | ||||||||
This package can parse RSS XML feeds using plugin extensions. |
|
A generic PHP FeedParser library.
$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 (14) |
File | Role | Description | ||
---|---|---|---|---|
FeedParser (4 files, 1 directory) | ||||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files (14) | / | FeedParser |
File | Role | Description | ||
---|---|---|---|---|
Plugin (8 files) | ||||
Base.php | Class | Class source | ||
Feed.php | Class | Class source | ||
FeedParser.php | Class | Class source | ||
Item.php | Class | Class source |
Files (14) | / | FeedParser | / | Plugin |
File | Role | Description |
---|---|---|
Atom.php | Class | Class source |
Content.php | Class | Class source |
Core.php | Class | Class source |
DC.php | Class | Class source |
Enclosure.php | Class | Class source |
Media.php | Class | Class source |
Plugin.php | Class | Class source |
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 |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.