title: The best PHP lib/class to generate RSS/Atom
body: <p>I have to produce an RSS/Atom feed in various applications, and I want to know a good library or class which is able to produce both, and which already handles all common problems.</p>
  
  <p>For example, the one I used for years does not put the right format for date, so my feed is not well-handled by several aggregators.</p>
  
  <p><strong>Update:</strong>
  Why I am looking for a library? Because the one I used for years, which I had hacked a few times, has a little problem. Maybe a specification is not being correctly followed.</p>
  
  <p><a href="https://stackoverflow.com/questions/182615/why-my-rss-feed-duplicate-some-entries">Why does my RSS feed duplicate some entries?</a></p>