Yii2 social share- A beautiful social share buttons for yii2. ¶
This is a social share buttons for yii2 projects.
Installation ¶
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist imanilchaudhari/yii2-social-share "dev-master"
or add
"imanilchaudhari/yii2-social-share": "dev-master"
to the require section of your composer.json
file.
Usage ¶
Once the extension is installed, simply use it in your code by :
<?= \imanilchaudhari\socialshare\ShareButton::widget([
'style'=>'horizontal',
'networks' => ['facebook','linkedin','twitter'],
'data_via'=>'imanilchaudhari', //twitter username (for twitter only, if exists else leave empty)
]); ?>
About ¶
This is a replica of SocialShareButton by Yii Expert.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.