A multi-purpose RSS library

Installs: 9 869

Dependents: 2

Suggesters: 0

Security: 0

Stars: 5

Watchers: 2

Forks: 5

Open Issues: 2

Type:neos-package

2.1.1 2022-02-07 14:24 UTC

This package is auto-updated.

Last update: 2024-10-07 19:56:48 UTC


README

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();