powerkernel/yii2-bootstrapsocial

Bootstrap Social extension for Yii2

Installs: 5 250

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1

Type:yii2-extension

1.0.0 2017-12-04 04:29 UTC

This package is auto-updated.

Last update: 2024-11-16 21:08:29 UTC


README

Bootstrap Social extension for Yii2

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
]) ?>