Yii 2.0: yii2-social-share

A beautiful social share buttons for yii2.
2 followers

This is a social share buttons for yii2 projects.

Requirements

"yiisoft/yii2": "*",

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','googleplus','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.

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet