Download the PHP package yjk/phprss without Composer
On this page you can find all versions of the php package yjk/phprss. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package phprss
PHP RSS feed builder
Instruction for use
Create a channel image
$rssImage = new RssImageType();
$rssImage->setLink("http://koroph.site");
$rssImage->setUrl("http://koroph.site/image/url");
$rssImage->setHeight(80);
$rssImage->setWidth(80);
Create RSS input channel
$rssInput = new RssInputType();
$rssInput->setTitle("My application");
$rssInput->setName("Koroph");
$rssInput->setLink("http://koroph.site");
$rssInput->setDescription("http://koroph.site");
Create item channel
$rssItem = new RssItem();
$rssItem->setTitle("Article $i");
$rssItem->setDescription("Last blog article. $i");
$rssItem->setAuthor("koroph");
$rssItem->setEnclosure("http://koroph.site/image/url", "jpg");
$rssItem->setComments("set my comment");
$rssItem->setCategory("life", "program");
$rssItem->setLink("http://koroph.site/link/$i");
$rssItem->setGuid("http://koroph.site/guid/$i");
$rssItem->setPubDate("Wed, $i Nov 201$i 13:20:00 GMT");
Generate RSS feed document
$builder = new RssBuilder();
$builder->setTitle("my handle blog");
$builder->setLink("http://koroph.site");
$builder->setDescription("any articles");
$builder->setLanguage("en");
$builder->setSkipDays(RssDayType::FRIDAY, RssDayType::THURSDAY);
$builder->setSkipHours(2, 4, 6, 8);$builder->setImage($rssImage);
$builder->add($rssItem);echo $builder->getDocument();
PHP RSS feed builder is simple is easy to use