Decent RSS feed generator for PHP

Antony Carthy picture Antony Carthy · Dec 11, 2009 · Viewed 19.1k times · Source

I need an RSS Feed generator; should I use a class or should I generate the feed myself?

If I should generate it myself, where is a good place to get comprehensive specs of the standards?

If not, are there any good classes out there to do it and do it quickly and do it well?

Answer

Peter Lindqvist picture Peter Lindqvist · Dec 11, 2009

PHP Universal Feed Generator (supports RSS 1.0, RSS 2.0 and ATOM)

Features:

  • Generates RSS 1.0, RSS 2.0 and ATOM 1.0 feeds
  • All feeds are are validated by feed validator.
  • Supports all possible feed elements.
  • Simple and easy to define channel and feed items
  • Implements appropriate namespaces for different versions.
  • Automatically converts date formats.
  • Generates UUID for ATOM feeds.
  • Enables usage of subtags and attributes. (example: image and encloser tags)
  • Completely Object oriented in PHP5 class structure.
  • Handles CDATA encoding for required tags.
  • Nearly same code for generating all kinds of feed

Examples