How to create universal feed reader

Discussion in 'PHP' started by s_ruben, Jan 18, 2011.

  1. #1
    Hello

    Can anybody help me to create or find an article about how to create a universal feed reader using php. I mean the reader has to read all type of feed (rss, atom, rdf e.t.c.).

    Please note that I want to create the reader myself, not to download. And it will be better to create the reader using SimpleXML. :)

    Thank you.
     
    s_ruben, Jan 18, 2011 IP
  2. buddyborg

    buddyborg Guest

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use SimplePie - http://simplepie.org/
    I adopted the practice of using simplepie.
    if you know how to work with XMLnamespaces, you can create a custom simplepie class that syndicates and reads whatever feed format you can find. Its something that may need occasional mods as the technology will undoubtedly change. but its better than working from complete scratch in my book.
     
    buddyborg, Jan 19, 2011 IP
  3. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #3
    buddyborg, thank you for your reply. I know about SimplePie, but I want to know how to create universal feed reader myself. I can create rss reader, but I also want to know how to create other formats (atom, rdf e.t.c.) feed readers too.

    Thank you.
     
    s_ruben, Jan 19, 2011 IP
  4. nuare

    nuare Member

    Messages:
    49
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #4
    Use ZendFramework to read feed
    You can use these classes
    Zend_Feed_Rss
    Zend_Feed_Atom
     
    nuare, Jan 20, 2011 IP