assayer-pro / yii2-social-likes
Yii2 wrapper for social like buttons, see http://sapegin.github.io/social-likes/
Installs: 193
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/social-likes: ^3.1@dev
- yiisoft/yii2: >=2.0.6
This package is auto-updated.
Last update: 2024-11-14 05:19:18 UTC
README
Yii2 widget for Social Likes: share buttons with counters for popular social networks. Beautiful share buttons with counters for popular social networks: Facebook, Twitter, Google+, Pinterest, Vkontakte, etc. Uses jQuery.
Yii2 wrapper for http://sapegin.github.io/social-likes/
Installation
The preferred way to install this extension is through composer.
- Either run
php composer.phar require --prefer-dist "assayer-pro/yii2-social-likes" "*"
or add
"assayer-pro/yii2-social-likes" : "*"
to the require
section of your application's composer.json
file.
Usage
use assayerpro\SocialLikes\SocialLikes; ... echo SocialLikes::widget([ 'skin' => 'birman', 'buttons' => [ 'facebook' => [ 'title' => 'Share link on Facebook', 'name' => 'Facebook', 'show' => true, ], 'twitter' => [ 'title' => 'Share link on Twitter', 'name' => 'Twitter', 'show' => true, ], 'plusone' => [ 'title' => 'Share link on Google+', 'name' => 'Google+', 'show' => true, ], ]);