Is there a PHP reader for RSS and ATOM?

I need a PHP / script library that can return data from feeds, regardless of whether they are RSS or ATOM, because I want users to insert random feeds that will then be stored in the database. It would also be great if he could check if the given URL is a feed or not.

If anything exists that can help me, can someone tell me? Thanks!

+4
source share
4 answers

Try these two, they both do RSS and Atom:

+11
source

Zend_feed

Zend_Feed provides features for consuming RSS and Atom feeds. This provides a natural syntax for accessing feed items, feed attributes, and record attributes. Zend_Feed also has extensive support for modifying the feed and input structure with the same natural syntax and returning the result in XML. In the future, support for modifications may provide support for the Atom Publishing Protocol.

You do not need to use the entire Zend Framework, just take the Zend_Feed component and its dependencies.

+1
source

I recently created a php feed reader class that can parse both RSS and Atom. Here is the link http://raynux.com/blog/2009/09/02/rayfeedreader-php-class-for-parsing-rss-and-atom-feed/ .

+1
source

It is easily handled by SimpleXML and requires no code from anyone but you. Just remember that SimpleXML will shit itself if you provide it with a file that is invalid or does not exist. Use try / catch + execeptions.

http://us2.php.net/simplexml

-1
source

All Articles