Git Product home page Git Product logo

yii2-social's Introduction

yii2-social

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads

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
    • Embedded Timeline
  • VKontakte
    • Comments Button
    • Embedded Post
    • Community/Group
    • Like Button
    • Recommendations
    • Poll Module
    • Authorization
    • Share Content
    • Subscribe
  • GitHub
    • Watch Button
    • Star Button
    • Fork Button
    • Follow Button
  • GitHubX
    • Watch Button
    • Star Button
    • Fork Button
    • Issue Button
    • Download Button
    • Follow Button

Installation

The preferred way to install this extension is through composer.

NOTE: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json.

Either run

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

or add

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

to the require section of your composer.json file.

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' => [
            'clientId' => 'GOOGLE_API_CLIENT_ID',
            'pageId' => 'GOOGLE_PLUS_PAGE_ID',
            'profileId' => 'GOOGLE_PLUS_PROFILE_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

GitHubX

VIEW DEMO

License

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

yii2-social's People

Contributors

kartik-v avatar albertborsos avatar cinghie avatar madand avatar xzaero avatar daugsbi avatar

Watchers

Dmitry Arkhipov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.