yii2mod/yii2-feed
Composer 安装命令:
composer require yii2mod/yii2-feed
包简介
Social feeds
关键字:
README 文档
README
Installation
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 ]); ?>
RSS
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', ]]); ?>
统计信息
- 总下载量: 206
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-30