RSS reader widget for Yii2.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist copoka/yii2-rss-reader "*"
or add
"copoka/yii2-rss-reader": "*"
to the require section of your composer.json
file.
Once the widget is installed, add it to a view script:
echo \copoka\RssFeed\RssReader::widget([
'channel' => '{source_url}/feed.xml',
'itemView' => 'item',
'pageSize' => 5,
'wrapClass' => 'rss-wrap',
'wrapTag' => 'div',
'category' => 'sport'
]);