2017 © Pedro Peláez
 

library feedify

Feedify transforms any data to a feed in PHP

image

pixel418/feedify

Feedify transforms any data to a feed in PHP

  • Thursday, November 14, 2013
  • by Pixel418
  • Repository
  • 0 Watchers
  • 2 Stars
  • 14 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Feedify

Feedify transforms any data to a feed in PHP., (*1)

Currently support RSS & SiteMap feed., (*2)

Code example

$writer = new \Feedify\Writer();

/* Add global description */
$writer->title = 'Title of my blog';
$writer->description = 'Description of my blog';
$writer->siteURL = 'http://example.com/url/to/my/blog';
$writer->feedURL = 'http://example.com/url/to/my/blog/feed';

/* Add items & formatters */
// Add data from your database
$writer->addItems($myData);
// The 'date' attribute could be used directly
$writer->addAttribute('date');
// The 'title' attribute corresponds to my 'name' attribute
$writer->addAttributeMap('title', 'name');
// The 'url' attribute needs a specific formatter
$writer->addAttributeFormatter('url', function($article){
  return 'http://example.com/article/'.$article->id;
});

/* Output */
// As a RSS
$writer->output(\Feedify\Writer::RSS_FORMAT);
// Or as a SiteMap
$writer->output(\Feedify\Writer::SITEMAP_FORMAT);

Author & Community

Feedify is under MIT License., (*3)

It is created and maintained by Thomas ZILLIOX., (*4)

The Versions

14/11 2013

dev-master

9999999-dev https://github.com/Pixel418/Feedify

Feedify transforms any data to a feed in PHP

  Sources   Download

MIT

The Requires

 

lib

14/11 2013

dev-develop

dev-develop https://github.com/Pixel418/Feedify

Feedify transforms any data to a feed in PHP

  Sources   Download

MIT

The Requires

 

lib

14/11 2013

v1.0.0

1.0.0.0 https://github.com/Pixel418/Feedify

Feedify transforms any data to a feed in PHP

  Sources   Download

MIT

The Requires

 

lib