Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

social feeds widget

Awesome Lists containing this project

README

        

Social feed widgets for Yii 2
=========

[![Latest Stable Version](https://poser.pugx.org/yii2mod/yii2-feed/v/stable)](https://packagist.org/packages/yii2mod/yii2-feed) [![Total Downloads](https://poser.pugx.org/yii2mod/yii2-feed/downloads)](https://packagist.org/packages/yii2mod/yii2-feed) [![License](https://poser.pugx.org/yii2mod/yii2-feed/license)](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',
]]); ?>
```