dev-master
9999999-devA multi-purpose RSS library
MIT
The Requires
- php ~5.5 || ~7.0
by Robert Lemke
1.0.x-dev
1.0.9999999.9999999-devA multi-purpose RSS library
MIT
The Requires
- php ~5.5 || ~7.0
by Robert Lemke
Wallogit.com
2017 © Pedro Peláez
A multi-purpose RSS library
This is yet another RSS / Atom feed generator for PHP 7 and later. It works great in combination with Flow but should also be fine as a standalone library., (*1)
This package is composer enabled., (*2)
<?php
$feed = new \RobertLemke\Rss\Feed();
$channel = new \RobertLemke\Rss\Channel();
$channel
->setTitle('All about Neos Flow')
->setDescription($channelDescription)
->setFeedUri($feedUri)
->setWebsiteUri($websiteUri)
->setLanguage('en-US');
$item = new \RobertLemke\Rss\Item();
$item
->setTitle('My first blog post')
->setGuid($someUniqueIdentifier)
->setPublicationDate(new DateTime())
->setContent($blogPostContent);
$channel->addItem($item);
$feed->addChannel($channel);
echo $feed->render();
A multi-purpose RSS library
MIT
A multi-purpose RSS library
MIT