PHP RSS Parsers
PHP RSS Parsers are what many PHP developers looking for these days as every web application or website has some RSS input or output.
RSS parsers make the use of RSS simpler as they have overcame the known RSS parsing difficulties.
WebResourcesDepot have collected the most popular free RSS Parsers coded with PHP:
SimplePie
SimplePie is a PHP code library that makes it very easy to use RSS & Atom feeds. SimplePie is fast and standards compliant as it supports:
- RSS 0.90
- RSS 0.91 (Netscape)
- RSS 0.91 (Userland)
- RSS 0.92
- RSS 1.0
- RSS 2.0
- Atom 0.3
- Atom 1.0
This PHP RSS parser class has also plugins for favorite web services.
lastRSS
lastRSS is also a simple yet powerful PHP class for parsing RSS feeds.
- All RSS versions supported (0.9, 1.0 and 2.0)
- Transparent cache (doesn’t cache RSS file directly, neither HTML output, but serialized variable; cached data isn’t parsed every time, but you can still access individual fields)
- pubDate/lastBuildDate conversion to any date/time format
- Character encoding conversion (all encodings supported by iconv library)
- Returns an associative array with RSS fields
- Regullar expression parsing (very quick)
- Strips HTML from description (both hard-coded and entity-coded)
- Optional limit the number of returned items
- Two ways how to proceed CDATA information (get/strip CDATA content)
MagpieRSS
This PHP RSS parser class also supports well known feed formats like RSS 1.0, RSS 2.0 & Atom.
- Easy to use
- Parses most RSS formats
- Integrated Object Cache
- HTTP Conditional GETs
- Configurable
- Modular
Zend_Feed
Zend_Feed provides functionality for consuming RSS and Atom feeds. It provides a natural syntax for accessing elements of feeds, feed attributes, and entry attributes. Zend_Feed also has extensive support for modifying feed and entry structure with the same natural syntax, and turning the result back into XML. In the future, this modification support could provide support for the Atom Publishing Protocol.
- Tags:
Atom Class Feed Parser Php RSS
- Filed under: Goodies, Other License, Rss & Feeds
- 21 Comments























21 Responses for "PHP RSS Parsers"
Look like SimplePie is the most advertised project.
Did you actually use any of those?
MagPie is a great tool for parsing feeds. It’s also got some caching features.
I am using MagPie for spfldbloggers.com, a local blog list, and grittr, a tool that aggregates newspaper feeds.
@Binh Nguyen,
I had used lastRSS & had tested Magpie before. Before this post I simply tested SimplePie.
lastRSS & Magpie are very well known & used.
I discovered SimplePie recently. It looks very promising and being developed frequently. I’ll give it a try for sure.
With small number of feeds, all of them can give similar results. If anyone has an experience on performance or else please share..
Cool stuff, thanks for letting me know =)
You forgot Zend_Feed, part of Zend Framework.
[...] PHP RSS Parsers (tags: php rss parser xml feed tools programming code) [...]
[...] Web Resources Depot collects several different tools to parse RSS feeds using PHP. [...]
@Simone,
Thanks for reminding. I didn’t know about it as I’ve never used Zend. I’ve added Zend_Feed to the list.
there’s another rss parser on http://rssphp.net that just parses all rss feed and extensions (for php5+ only) and it’s free
There’s a good O-O port of Richard James Kendall’s PHP RSS Parser: here
I’ll have a look at the first one (not heard of before) – i’ve been using feedforall’s free php solution.
MagPie is a great tool ..(my recommend only )
MagPie is the best tool!
I agree that SimplePie is looking great…MagPie hasn’t been updated in years.
magpierss works only for rss with known tags like channel, item .. for customized rss it doesn’t work.
A good parser should recognize the tags and stack them, I think. I am trying to parse some rss that has tags like and , don’t ask me why and who made such rss but anyway magpie doesn’t work, any other parsers?
Yes (: MagPie is the best tool!
Yes, simplepie is powerfull website scripts
im looking for a guide on building rss parser clsass.
have any idea anybody?
thanks
You can use this php function:
http://www.phpinform.com/2009/06/21/php-rss-to-array-function/
good one. thank you!
I have worked with MagpieRSS. It is cool and easy to use with. I have developed a simple RSS / ATOM Feed Reader Script in PHP.
http://axtecindia.com/downloads/
Try this url for the demo