https://github.com/robertlemke/robertlemke.rss
A multi purpose library for generating RSS feeds. Pretty opinionated, not a lot to configure (yet).
https://github.com/robertlemke/robertlemke.rss
Last synced: about 1 year ago
JSON representation
A multi purpose library for generating RSS feeds. Pretty opinionated, not a lot to configure (yet).
- Host: GitHub
- URL: https://github.com/robertlemke/robertlemke.rss
- Owner: robertlemke
- License: mit
- Created: 2013-04-02T09:03:03.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2022-02-07T14:24:39.000Z (over 4 years ago)
- Last Synced: 2025-04-14T15:58:05.184Z (about 1 year ago)
- Language: PHP
- Size: 32.2 KB
- Stars: 4
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RSS / Atom Feed Generator
=========================
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.
This package is composer enabled.
Example
-------
```php
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();
```