nckg / feedme
A library for generating RSS feeds
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nckg/feedme
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2025-09-27 03:51:32 UTC
README
Installation
Simply add a dependency on nckg/feedme
to your project's composer.json file if you use Composer to manage the dependencies of your project.
{
"require-dev": {
"nckg/feedme": "dev-master"
}
}
Usage
$feed = new Feed; $channel = new Channel; $channel ->setTitle('An RSS channel') ->setFeedUri('http://www.w3.org') ->setWebsiteUri('http://github.com/nckg/feedme') ->setDescription('My RSS channel') ->setLanguage('nl-BE'); $item = new Item(); $item ->setTitle('My first blog post') ->setPublicationDate($date) ->setDescription('Foobar'); $channel->addItem($item); $feed->addChannel($channel); echo $feed->render();