Which RSS parser should be used in PHP?

I am looking for an RSS parser written in PHP. The problem is not that I cannot find her. The problem is that there are too many of them, and it is difficult to decide which one to use (especially when I have no experience with them, and try them too much time).

Can someone recommend me a "good" RSS parser?

The following requirements are important to me (given in order of importance):

  • It can extract all the information specified in the feed (not only the name, description and link, but everything that is, for example, the author of the feed, feed icon, element tags, etc.).
  • He should be able to read not only RSS feeds, but also Atom feeds.
  • It must be tolerant of broken RSS (Atom) feeds.
  • It should be easy to use.
+5
source share
2 answers

My defacto answer will be “have you tried SimplePie ?”, This is a very good XML parser, but you have to look at demo to see how it handles broken pipes :-)

+8
source

In addition to the SimplePie already mentioned, there is Zend_Feed (which can be used stand-alone), and since it is XML anyway, you can also use any of the internal XML extensions , such as the DOM or XMLReader .

+5
source

All Articles