https://github.com/yii2mod/yii2-feed
social feeds widget
https://github.com/yii2mod/yii2-feed
yii2 yii2-extension yii2-feed yii2-social-feed
Last synced: 9 months ago
JSON representation
social feeds widget
- Host: GitHub
- URL: https://github.com/yii2mod/yii2-feed
- Owner: yii2mod
- License: mit
- Created: 2015-02-04T18:37:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-05-20T16:52:04.000Z (over 9 years ago)
- Last Synced: 2025-04-11T21:52:38.807Z (9 months ago)
- Topics: yii2, yii2-extension, yii2-feed, yii2-social-feed
- Language: PHP
- Size: 8.79 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Social feed widgets for Yii 2
=========
[](https://packagist.org/packages/yii2mod/yii2-feed) [](https://packagist.org/packages/yii2mod/yii2-feed) [](https://packagist.org/packages/yii2mod/yii2-feed)
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist yii2mod/yii2-feed "*"
```
or add
```json
"yii2mod/yii2-feed": "*"
```
to the require section of your composer.json.
Twitter
-------
**Configuration**
```php
//set keys at the beginning of config
\Yii::$container->set('yii2mod\feed\Twitter', [
'token' => '',
'tokenSecret' => '',
'consumerKey' => '',
'consumerSecret' => '',
]);
```
**Usage**
```php
'disem',
'postsCount' => 3
]); ?>
```
RSS
---
Allows to display multiple rss feeds as one
**Usage**
```php
3, 'feeds' => [
'http://somerss.com/rss.xml',
'http://somerss.com/rss2.xml',
]]); ?>
```