PHPackages                             maxodrom/yii2-social - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. maxodrom/yii2-social

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

maxodrom/yii2-social
====================

Module containing useful widgets for Yii Framework 2.0 that integrates social functionalities from DISQUS, Facebook, Google etc.

v1.3.3(9y ago)014BSD-3-ClausePHP

Since Oct 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/maxodrom/yii2-social)[ Packagist](https://packagist.org/packages/maxodrom/yii2-social)[ Docs](https://github.com/kartik-v/yii2-social)[ RSS](/packages/maxodrom-yii2-social/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (11)Used By (0)

yii2-social
===========

[](#yii2-social)

[![Stable Version](https://camo.githubusercontent.com/62f01d211c7182794573e1252f12755c8d7ff393a8c6698e490f303dde5d06de/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d736f6369616c2f762f737461626c65)](https://packagist.org/packages/kartik-v/yii2-social)[![Unstable Version](https://camo.githubusercontent.com/abe7c7f0e4078282ebbfd267bb9197d16f0676296f502047e1b9661299ddb552/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d736f6369616c2f762f756e737461626c65)](https://packagist.org/packages/kartik-v/yii2-social)[![License](https://camo.githubusercontent.com/2ac2faf9b8705a768b56ba8c79693bf89ab622aacd43d75c9374933b2ab82a20/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d736f6369616c2f6c6963656e7365)](https://packagist.org/packages/kartik-v/yii2-social)[![Total Downloads](https://camo.githubusercontent.com/c482d89d27e433387e896451b65cea11da66a370eaff51f194c51024a627fde5/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d736f6369616c2f646f776e6c6f616473)](https://packagist.org/packages/kartik-v/yii2-social)[![Monthly Downloads](https://camo.githubusercontent.com/0328b525917d306cb39b4bcc2bb3a03770683932731ccc37befdd25c07f38e84/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d736f6369616c2f642f6d6f6e74686c79)](https://packagist.org/packages/kartik-v/yii2-social)[![Daily Downloads](https://camo.githubusercontent.com/d1c58efdb3a840f9126e8c72403510c866e8f135381b8b7b8bdbbe212b5e0e72/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d736f6369616c2f642f6461696c79)](https://packagist.org/packages/kartik-v/yii2-social)

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
    - Save Button
    - Embedded Posts
    - Embedded Videos
    - Follow Button
    - Comment Button
    - Page Plugin
- 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
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

> NOTE: Check the [composer.json](https://github.com/kartik-v/yii2-social/blob/master/composer.json) for this extension's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) 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
-----

[](#usage)

### Module Configuration

[](#module-configuration)

You can view [usage and demos](http://demos.krajee.com/social) 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' => [
            'app_id' => 'FACEBOOK_APP_ID',
            'app_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

[](#disqus)

[`VIEW DEMO`](http://demos.krajee.com/social-details/disqus)

### Facebook

[](#facebook)

[`VIEW DEMO`](http://demos.krajee.com/social-details/facebook)

### Google+

[](#google)

[`VIEW DEMO`](http://demos.krajee.com/social-details/google)

### Google Analytics

[](#google-analytics)

[`VIEW DEMO`](http://demos.krajee.com/social-details/google-analytics)

### Twitter

[](#twitter)

[`VIEW DEMO`](http://demos.krajee.com/social-details/twitter)

### GitHub

[](#github)

[`VIEW DEMO`](http://demos.krajee.com/social-details/github)

### GitHubX

[](#githubx)

[`VIEW DEMO`](http://demos.krajee.com/social-details/githubx)

License
-------

[](#license)

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

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 85.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~99 days

Recently: every ~214 days

Total

10

Last Release

3346d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c79da7402e9376230130c590d274bfe4ffbe27e65c3584df4318bab3504371b?d=identicon)[mercium](/maintainers/mercium)

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (109 commits)")[![mamontovdmitriy](https://avatars.githubusercontent.com/u/6825062?v=4)](https://github.com/mamontovdmitriy "mamontovdmitriy (3 commits)")[![Shaposhnikov](https://avatars.githubusercontent.com/u/2725815?v=4)](https://github.com/Shaposhnikov "Shaposhnikov (2 commits)")[![felladrin](https://avatars.githubusercontent.com/u/418083?v=4)](https://github.com/felladrin "felladrin (2 commits)")[![albertborsos](https://avatars.githubusercontent.com/u/7307145?v=4)](https://github.com/albertborsos "albertborsos (2 commits)")[![koxu1996](https://avatars.githubusercontent.com/u/6506780?v=4)](https://github.com/koxu1996 "koxu1996 (1 commits)")[![madand](https://avatars.githubusercontent.com/u/2280844?v=4)](https://github.com/madand "madand (1 commits)")[![tibee](https://avatars.githubusercontent.com/u/3636947?v=4)](https://github.com/tibee "tibee (1 commits)")[![vex21](https://avatars.githubusercontent.com/u/1535906?v=4)](https://github.com/vex21 "vex21 (1 commits)")[![XzAeRo](https://avatars.githubusercontent.com/u/1656037?v=4)](https://github.com/XzAeRo "XzAeRo (1 commits)")[![cinghie](https://avatars.githubusercontent.com/u/2445152?v=4)](https://github.com/cinghie "cinghie (1 commits)")[![daugsbi](https://avatars.githubusercontent.com/u/5528706?v=4)](https://github.com/daugsbi "daugsbi (1 commits)")[![Edofre](https://avatars.githubusercontent.com/u/710429?v=4)](https://github.com/Edofre "Edofre (1 commits)")[![ekzobrain](https://avatars.githubusercontent.com/u/2089893?v=4)](https://github.com/ekzobrain "ekzobrain (1 commits)")

---

Tags

facebooktwitteryii2extensionsocialwidgetdisqus

### Embed Badge

![Health badge](/badges/maxodrom-yii2-social/health.svg)

```
[![Health](https://phpackages.com/badges/maxodrom-yii2-social/health.svg)](https://phpackages.com/packages/maxodrom-yii2-social)
```

###  Alternatives

[kartik-v/yii2-social

Module containing useful widgets for Yii Framework 2.0 that integrates social functionalities from DISQUS, Facebook, Google etc.

91256.5k8](/packages/kartik-v-yii2-social)[kartik-v/yii2-grid

Yii 2 GridView on steroids. Various enhancements and utilities for the Yii 2.0 GridView widget.

5576.6M179](/packages/kartik-v-yii2-grid)[kartik-v/yii2-widget-datetimepicker

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin (sub repo split from yii2-widgets)

1036.5M47](/packages/kartik-v-yii2-widget-datetimepicker)[kartik-v/yii2-widget-typeahead

Enhanced Yii2 wrapper for the Twitter Typeahead plugin (sub repo split from yii2-widgets).

454.8M9](/packages/kartik-v-yii2-widget-typeahead)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)[kartik-v/yii2-widget-timepicker

Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets)

404.9M14](/packages/kartik-v-yii2-widget-timepicker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
