PHPackages                             openpsa/universalfeedcreator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. openpsa/universalfeedcreator

ActiveLibrary

openpsa/universalfeedcreator
============================

RSS and Atom feed generator by Kai Blankenhorn

v1.9.0(2y ago)3593.7k↑180.8%11[1 PRs](https://github.com/flack/UniversalFeedCreator/pulls)1LGPL-2.1-or-laterPHPPHP &gt;=5.2

Since May 25Pushed 2y ago3 watchersCompare

[ Source](https://github.com/flack/UniversalFeedCreator)[ Packagist](https://packagist.org/packages/openpsa/universalfeedcreator)[ RSS](/packages/openpsa-universalfeedcreator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (1)

UniversalFeedCreator
====================

[](#universalfeedcreator)

RSS and Atom feed generator by Kai Blankenhorn, slightly cleaned up and packaged for Composer.

Supported formats: RSS0.91, RSS1.0, RSS2.0, PIE0.1 (deprecated), MBOX, OPML, ATOM, ATOM0.3, HTML, JS, PHP

General Usage
-------------

[](#general-usage)

```
require 'vendor/autoload.php';

$rss = new UniversalFeedCreator();
$rss->useCached(); // use cached version if age < 1 hour
$rss->title = "PHP news";
$rss->description = "daily news from the PHP scripting world";

//optional
$rss->descriptionTruncSize = 500;
$rss->descriptionHtmlSyndicated = true;

$rss->link = "http://www.dailyphp.net/news";
$rss->syndicationURL = "http://www.dailyphp.net/" . $_SERVER["SCRIPT_NAME"];

$image = new FeedImage();
$image->title = "dailyphp.net logo";
$image->url = "http://www.dailyphp.net/images/logo.gif";
$image->link = "http://www.dailyphp.net";
$image->description = "Feed provided by dailyphp.net. Click to visit.";

//optional
$image->descriptionTruncSize = 500;
$image->descriptionHtmlSyndicated = true;

$rss->image = $image;

// get your news items from somewhere, e.g. your database:
mysql_select_db($dbHost, $dbUser, $dbPass);
$res = mysql_query("SELECT * FROM news ORDER BY newsdate DESC");
while ($data = mysql_fetch_object($res)) {
    $item = new FeedItem();
    $item->title = $data->title;
    $item->link = $data->url;
    $item->description = $data->short;

    //optional
    $item->descriptionTruncSize = 500;
    $item->descriptionHtmlSyndicated = true;

    $item->date = $data->newsdate;
    $item->source = "http://www.dailyphp.net";
    $item->author = "John Doe";

    $rss->addItem($item);
}

echo $rss->saveFeed("RSS1.0", "news/feed.xml");
```

Changelog:
----------

[](#changelog)

```
v1.8          12-03-13
    packaged for Composer & cleaned up slightly

v1.7.7(BH)    28-03-06
    added GPX Feed (Barry Hunter)

v1.7.6(BH)    20-02-06
    added GeoRSS Feed (Barry Hunter)

v1.7.5(BH)    16-11-05
    added BASE Feed (Barry Hunter)

v1.7.4(BH)    05-07-05
    added KML Feed (Barry Hunter)

v1.7.3(BH)    05-07-05
    added PHP Feed (Barry Hunter)

v1.7.2    10-11-04
    license changed to LGPL

v1.7.1
    fixed a syntax bug
    fixed left over debug code

v1.7    07-18-04
    added HTML and JavaScript feeds (configurable via CSS) (thanks to Pascal Van Hecke)
    added HTML descriptions for all feed formats (thanks to Pascal Van Hecke)
    added a switch to select an external stylesheet (thanks to Pascal Van Hecke)
    changed default content-type to application/xml
    added character encoding setting
    fixed numerous smaller bugs (thanks to Sören Fuhrmann of golem.de)
    improved changing ATOM versions handling (thanks to August Trometer)
    improved the UniversalFeedCreator's useCached method (thanks to Sören Fuhrmann of golem.de)
    added charset output in HTTP headers (thanks to Sören Fuhrmann of golem.de)
    added Slashdot namespace to RSS 1.0 (thanks to Sören Fuhrmann of golem.de)

v1.6    05-10-04
    added stylesheet to RSS 1.0 feeds
    fixed generator comment (thanks Kevin L. Papendick and Tanguy Pruvot)
    fixed RFC822 date bug (thanks Tanguy Pruvot)
    added TimeZone customization for RFC8601 (thanks Tanguy Pruvot)
    fixed Content-type could be empty (thanks Tanguy Pruvot)
    fixed author/creator in RSS1.0 (thanks Tanguy Pruvot)

v1.6 beta    02-28-04
    added Atom 0.3 support (not all features, though)
    improved OPML 1.0 support (hopefully - added more elements)
    added support for arbitrary additional elements (use with caution)
    code beautification :-)
    considered beta due to some internal changes

v1.5.1    01-27-04
    fixed some RSS 1.0 glitches (thanks to Stéphane Vanpoperynghe)
    fixed some inconsistencies between documentation and code (thanks to Timothy Martin)

v1.5    01-06-04
    added support for OPML 1.0
    added more documentation

v1.4    11-11-03
    optional feed saving and caching
    improved documentation
    minor improvements

v1.3    10-02-03
    renamed to FeedCreator, as it not only creates RSS anymore
    added support for mbox
    tentative support for echo/necho/atom/pie/???

v1.2    07-20-03
    intelligent auto-truncating of RSS 0.91 attributes
    don't create some attributes when they're not set
    documentation improved
    fixed a real and a possible bug with date conversions
    code cleanup

v1.1    06-29-03
    added images to feeds
    now includes most RSS 0.91 attributes
    added RSS 2.0 feeds

v1.0    06-24-03
    initial release

```

Credits
-------

[](#credits)

```
originally (c) Kai Blankenhorn
www.bitfolge.de
kaib@bitfolge.de
v1.3 work by Scott Reynen (scott@randomchaos.com) and Kai Blankenhorn
v1.5 OPML support by Dirk Clemens

```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 66.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~392 days

Recently: every ~311 days

Total

11

Last Release

816d ago

PHP version history (2 changes)v1.8.0PHP &gt;=5.0

v1.8.5PHP &gt;=5.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4f0ce449f03f8b943679aebdd079e951c4d27e3c7c87c15896b9e3426e6a071?d=identicon)[flack](/maintainers/flack)

---

Top Contributors

[![flack](https://avatars.githubusercontent.com/u/425166?v=4)](https://github.com/flack "flack (51 commits)")[![splitbrain](https://avatars.githubusercontent.com/u/86426?v=4)](https://github.com/splitbrain "splitbrain (22 commits)")[![dlangille](https://avatars.githubusercontent.com/u/1626436?v=4)](https://github.com/dlangille "dlangille (2 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (1 commits)")[![saerdnaer](https://avatars.githubusercontent.com/u/40266?v=4)](https://github.com/saerdnaer "saerdnaer (1 commits)")

---

Tags

atomrsspiegpxopmlgeorss

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/openpsa-universalfeedcreator/health.svg)

```
[![Health](https://phpackages.com/badges/openpsa-universalfeedcreator/health.svg)](https://phpackages.com/packages/openpsa-universalfeedcreator)
```

###  Alternatives

[simplepie/simplepie

A simple Atom/RSS parsing library for PHP

1.6k8.7M69](/packages/simplepie-simplepie)[laminas/laminas-feed

provides functionality for creating and consuming RSS and Atom feeds

16649.2M47](/packages/laminas-laminas-feed)[jason-munro/cypht

Lightweight Open Source webmail written in PHP and JavaScript

1.5k146.0k](/packages/jason-munro-cypht)[dg/rss-php

RSS &amp; Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feed

4801.2M10](/packages/dg-rss-php)[mibe/feedwriter

Generate feeds in either RSS 1.0, RSS 2.0 or ATOM formats

1951.1M5](/packages/mibe-feedwriter)[debril/rss-atom-bundle

RSS / Atom and JSONFeed support for Symfony

1381.3M2](/packages/debril-rss-atom-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
