| Recommend this page to a friend! | 
| Info | Documentation | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 68 | All time:  10,335 This week: 524 | ||||
| Version | License | PHP version | Categories | |||
| php-rss 1.0.0 | The PHP License | 5 | XML, PHP 5, Web services | 
| Description | Author  | |
This class can generate an RSS feed from a list of items.  | 
Hi with the help of this page you can generate simple RSS 2.0
<?php
use Channaveer\RSS\RSS;
require_once './vendor/autoload.php';
$rssItems = [
    [
        'title'         => 'What Is Composer? How Does It Work? Useful Composer Commands And Usage',
        'url'           => 'https://somesite.in/posts/what-is-composer-how-does-it-work',
        'description'   => 'In this article, you will learn: What Is Composer, Using Composer, Installation In Ubuntu/Windows/Mac.',
        'updatedAt'     => '2020-05-07'
    ]
];
$path       = '.'; / Path to generate your rss.xml file */
$filename   = 'rss.xml'; / RSS filename default is rss.xml  */
$rss        = new RSS();
$rss->siteName('SiteName')
    ->siteUrl('https://siteurl.com')
    ->description('Some random description of the site')
    ->language('en-US') / Default is en-Us you can set any of yours */
    ->lastUpdated($feedItems[0]['updatedAt']) / Just pass datetime string or date string */
    ->generate($path, $rssItems, $filename);
RSS Items is array of items which requires following fields.
title
url
description
updatedAt
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Doc. | Read me | |||
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
  | 
  | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.