[wp-hackers] php feed reader libraries

Otto otto at ottodestruct.com
Fri Sep 23 19:17:36 UTC 2011


On Fri, Sep 23, 2011 at 1:53 PM, Braydon <ronin at braydon.com> wrote:
> I'm building a plugin that is strongly dependent on parsing feeds, rss2 and
> others. What is the most widely supported loosely coupled library available?
>
> I have found:
> SimplePie - however their website mentions they have stopped the project and
> it has moved to github....
> MagpieRSS - yet there last release was in 2005-11-5....
> Zend Library - maintained, however I don't need to use all of Zend and don't
> want to include the whole library when just using the reader portion....
>
> What is the best option available and is most widely used among WordPress?

WordPress has SimplePie built in. Just use the built in function
fetch_feed($url) to get an RSS feed and automatically parse it into a
SimplePie object. It even handles caching the feed, with a 12 hour
default cache time.

-Otto


More information about the wp-hackers mailing list