dev-master
9999999-devSocial feeds
MIT
The Requires
extension yii2
Wallogit.com
2017 © Pedro Peláez
Social feeds
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist yii2mod/yii2-feed "*"
or add, (*4)
"yii2mod/yii2-feed": "*"
to the require section of your composer.json., (*5)
Configuration, (*6)
//set keys at the beginning of config
\Yii::$container->set('yii2mod\feed\Twitter', [
'token' => '',
'tokenSecret' => '',
'consumerKey' => '',
'consumerSecret' => '',
]);
Usage, (*7)
<?php echo yii2mod\feed\Twitter::widget([
'screenName' => 'disem',
'postsCount' => 3
]); ?>
Allows to display multiple rss feeds as one, (*8)
Usage, (*9)
<?php echo yii2mod\feed\Rss::widget(['to' => 3, 'feeds' => [ 'http://somerss.com/rss.xml', 'http://somerss.com/rss2.xml', ]]); ?>
Social feeds
MIT
extension yii2