yii2-social A Yii2 module for embedding popular social plugins and widgets

  1. Installation
  2. Requirements
  3. Usage
  4. Report
  5. License
  6. Resources

A module that enables access to social plugins for Yii Framework 2.0. It includes support for embedding plugins from the following networks into your website.

  • Disqus
  • Facebook
    • Like Button
    • Share Button
    • Send Button
    • Embedded Posts
    • Follow Button
    • Comment Button
    • Activity Feed
    • Recommendations Feed
    • Recommendations Bar
    • Like Box
    • Face Pile
  • Google Plus
    • Signin Plugin
    • +1 Button
    • Share Button
    • Follow Button
    • Page Badge
    • Person/Profile Badge
    • Community Badge
    • Embedded Posts
  • Google Analytics
  • Twitter
    • Share Button
    • Follow Button
    • Hash Tag Button
    • Mention Button
    • Embedded Posts/Tweets
  • GitHub
    • Watch Button
    • Fork Button
    • Follow Button

Installation

The preferred way to install this extension is through composer.

Either run:

$ php composer.phar require kartik-v/yii2-social "dev-master"

or add:

"kartik-v/yii2-social": "dev-master"

to the require section of your composer.json file.

Requirements

  • Yii 2.0 (dev-master)
  • PHP 5.4
  • Twitter Bootstrap 3.0

Usage

Module Configuration

You can view usage and demos on the module.

'modules' => [
    'social' => [
        // the module class
        'class' => 'kartik\social\Module',

        // the global settings for the disqus widget
        'disqus' => [
            'settings' => ['shortname' => 'DISQUS_SHORTNAME'] // default settings
        ],

        // the global settings for the facebook plugins widget
        'facebook' => [
            'appId' => 'FACEBOOK_APP_ID',
            'secret' => 'FACEBOOK_APP_SECRET',
        ],

        // the global settings for the google plugins widget
        'google' => [
            'pageId' => 'GOOGLE_PLUS_PAGE_ID',
            'clientId' => 'GOOGLE_API_CLIENT_ID',
        ],

        // the global settings for the google analytic plugin widget
        'googleAnalytics' => [
            'id' => 'TRACKING_ID',
            'domain' => 'TRACKING_DOMAIN',
        ],
        
        // the global settings for the twitter plugins widget
        'twitter' => [
            'screenName' => 'TWITTER_SCREEN_NAME'
        ],
    ],
    // your other modules
]
Disqus

`VIEW DEMO`

Facebook

`VIEW DEMO`

Google+

`VIEW DEMO`

Google Analytics

`VIEW DEMO`

Twitter

`VIEW DEMO`

GitHub

`VIEW DEMO`

Report

License

yii2-social is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.

Resources

1 2
45 followers
0 downloads
Yii Version: 2.0
License: BSD-2-Clause
Category: User Interface
Developed by: Kartik V
Created on: Feb 19, 2014
Last updated: 6 years ago

Related Extensions