Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit

When running the examples from the repository root like `php examples/example_atom.php`,
the scripts will complain and eventually fail:

    Warning: include(../Item.php): Failed to open stream: No such file or directory
    Fatal error: Uncaught Error: Class "FeedWriter\ATOM" not found

Let’s replace the `include`s with `require_once`s to fail eagerly on missing library
and use absolute path through the `__DIR__` constant introduced in PHP 5.3
instead of relying on lookup paths.

Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Generate RSS 1.0, RSS 2.0 or ATOM Formatted Feeds

This package can be used to generate feeds in either RSS 1.0, RSS 2.0 or ATOM format.

Applications can create a feed object, several feed item objects, set several types of properties of either feed and feed items, and add items to the feed.

Once a feed is fully composed with its items, the feed class can generate the necessary XML structure to describe the feed in RSS or ATOM format. This structure can be directly sent to the browser, or just returned as string.


  • PHP 5.3 or higher

If you don't have PHP 5.3 available on your system there is a version supporting PHP 5.0 and above. See the legacy-php-5.0 branch.


You can install via Composer.

composer require mibe/feedwriter


The documentation can be found in the gh-pages branch, or on GitHub Pages.

See the /examples directory for usage examples.

See the file for changes between the different versions.


In chronological order:

  • Anis uddin Ahmad
  • Michael Bemmerl
  • Phil Freo
  • Paul Ferrett
  • Brennen Bearnes
  • Michael Robinson
  • Baptiste Fontaine
  • Kristián Valentín
  • Brandtley McMinn
  • Julian Bogdani
  • Cedric Gampert
  • Yamek
  • Thielj
  • Pavel Khakhlou
  • Daniel
  • Tino Goratsch
  • John
  • Özgür Görgülü
  • Jan Tojnar