powerkernel/yii2-bootstrapsocial

Bootstrap Social extension for Yii2

Installs: 4 741

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-04-16 19:52:36 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
]) ?>