yii2-social-share A beautiful social share buttons for yii2.

  1. Requirements
  2. Installation
  3. Usage
  4. About

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.

0 0
2 followers
0 downloads
Yii Version: 2.0
License: MIT
Category: Web Service
Developed by: Anil Chaudhari
Created on: Dec 11, 2015
Last updated: 2 years ago

Related Extensions