robertlemke/rss

Last activity on 1 January 2017
  • 3
  • 5
  • 2505
composer require robertlemke/rss

A multi-purpose RSS library

1.1.0

A multi-purpose RSS library

Version
1.1.0
Type
typo3-flow-plugin
Release Date
Mar 7, 2016 10:57:16 a.m.
Source
git
Distribution
zip
Requires
  • php: ~5.5 || ~7.0
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT 451ce15ca79458f2691d6b33ff487fe4297c9214

RSS / Atom Feed Generator

This is yet another RSS / Atom feed generator for PHP 5.5 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 Feed();

$channel = new Channel();
$channel
  ->setTitle('All about TYPO3 Flow')
  ->setDescription($channelDescription)
  ->setFeedUri($feedUri)
  ->setWebsiteUri($websiteUri)
  ->setLanguage('en-US');

$item = new Item();
$item
  ->setTitle('My first blog post')
  ->setGuid($someUniqueIdentifier)
  ->setPublicationDate(new \DateTime())
  ->setContent($blogPostContent);

$channel->addItem($item);
$feed->addChannel($channel);

echo $feed;
The content of the readme is provided by Github
The same vendor provides 3 package(s).