What RSS parser should I use in PHP?

后端 未结 2 1121
时光取名叫无心
时光取名叫无心 2020-12-04 02:32

I am searching an RSS parser written in PHP. The problem is not that I cannot find one. The problem is that there are too many and it\'s hard to decide which one to use (esp

相关标签:
2条回答
  • 2020-12-04 02:38

    My defacto answer will be "have you tried SimplePie?", it's a very good XML parser but you'll have to have a look at their demo to see how it handles broken feeds :-)

    0 讨论(0)
  • 2020-12-04 03:04

    In addition to SimplePie already mentioned, there is Zend_Feed (which can be used standalone) and since this is XML anyway, you can also use any of the native XML extensions, like DOM or XMLReader.

    0 讨论(0)
提交回复
热议问题