yii2-social

A Yii2 module for embedding social plugins and widgets.

  • 所有者: kartik-v/yii2-social
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Stable Version
Unstable 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
    • 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

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' => [
            '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

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.

主要指标

概览
名称与所有者kartik-v/yii2-social
主编程语言PHP
编程语言PHP (语言数: 1)
平台
许可证Other
所有者活动
创建于2014-02-05 20:38:40
推送于2021-07-06 08:51:17
最后一次提交2021-07-06 14:19:40
发布数9
最新版本名称v1.3.5 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数91
关注者数15
派生数41
提交数129
已启用问题?
问题数58
打开的问题数1
拉请求数20
打开的拉请求数0
关闭的拉请求数5
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?