yii2-bootstrapsocial Bootstrap Social Buttons for Yii2

Yii2 Bootstrap Social

  1. Installation
  2. Usage

Yii2 Bootstrap Social

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist powerkernel/yii2-bootstrapsocial "*"

or add

"powerkernel/yii2-bootstrapsocial": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \powerkernel\bootstrapsocial\Button::widget([
    'button' => 'twitter', // Available buttons see https://github.com/lipis/bootstrap-social/
    'iconOnly' => false, // set true if only want the icon 
    'link' => '#your-url', // the button URL
    'label'=> 'Button label', // button label
]) ?>
1 0
1 follower
0 downloads
Yii Version: 2.0
License: BSD-2-Clause
Category: User Interface
Developed by: Harry Tang
Created on: Jul 22, 2016
Last updated: 5 months ago