2017 © Pedro Peláez
 

library yii2-jssocials

Yii2 JsSocials Wrapper

image

ruskid/yii2-jssocials

Yii2 JsSocials Wrapper

  • Tuesday, October 31, 2017
  • by ruskid
  • Repository
  • 1 Watchers
  • 0 Stars
  • 177 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 16 % Grown

The README.md

Yii2 JsSocials Wrapper.

Installation

The preferred way to install this extension is through http://getcomposer.org/download/., (*1)

Either run, (*2)

php composer.phar require ruskid/yii2-jssocials "dev-master"

or add, (*3)

"ruskid/yii2-jssocials": "dev-master"

to the require section of your composer.json file., (*4)

Why?

I didn't like existing yii2 share solutions..., (*5)

  1. yii2-social has only native sharing and non customizable buttons
  2. Other solutions provided customizable buttons, but without built in popup and native sharing support.

jssocials is :+1: =), (*6)

Check these for pluginOptions

http://js-socials.com/demos/ https://github.com/tabalinas/jssocials, (*7)

Usage

echo JsSocials::widget([
    'theme' => JsSocials::THEME_MINIMA, //4 available themes
    'pluginOptions' => [
        'showLabel' => false,
        'showCount' => false,
        'shareIn' => 'popup',
        'shares' => [
            [
              'share' => 'email',
              'label' => Yii::t('app', 'Email'),
              'to' => 'demmbox@gmail.com',
            ],
            "twitter",
            "facebook", 
            "googleplus", 
            "linkedin",
            "pinterest",
            "stumbleupon", 
            "whatsapp"
        ]
    ]
]);

The Versions

31/10 2017

dev-master

9999999-dev https://github.com/ruskid/yii2-jssocials

Yii2 JsSocials Wrapper

  Sources   Download

MIT

The Requires

 

by Victor Demin

yii2 jssocials