robertlemke/rss

Last activity 07 Feb 2022 7 5 8471
composer require robertlemke/rss

A multi-purpose RSS library

2.1.1

Version
2.1.1
Type
neos-package
Release Date
Feb 07, 2022 14:24
Source
git
Distribution
zip
Requires
Conflicts
MIT 4d8069b6085a4b720dfb354526a74b4eae70cb16

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

$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();
The content of the readme is provided by Github
The same vendor provides 3 package(s).