2017 © Pedro Peláez
 

yii2-extension yii2-feed

Social feeds

image

yii2mod/yii2-feed

Social feeds

  • Friday, May 20, 2016
  • by disem
  • Repository
  • 3 Watchers
  • 3 Stars
  • 140 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Social feed widgets for Yii 2

Latest Stable Version Total Downloads License, (*1)

Installation

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)

Twitter

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
    ]); ?>

RSS

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',
]]); ?>

The Versions

20/05 2016

dev-master

9999999-dev

Social feeds

  Sources   Download

MIT

The Requires

 

extension yii2