The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yii2mod/yii2-feed "*"
or add
"yii2mod/yii2-feed": "*"
to the require section of your composer.json.
Configuration
//set keys at the beginning of config
\Yii::$container->set('yii2mod\feed\Twitter', [
'token' => '',
'tokenSecret' => '',
'consumerKey' => '',
'consumerSecret' => '',
]);
Usage
<?php echo yii2mod\feed\Twitter::widget([
'screenName' => 'disem',
'postsCount' => 3
]); ?>
Allows to display multiple rss feeds as one
Usage
<?php echo yii2mod\feed\Rss::widget(['to' => 3, 'feeds' => [
'http://somerss.com/rss.xml',
'http://somerss.com/rss2.xml',
]]); ?>