modernkernel/yii2-fontawesome

This package is abandoned and no longer maintained. The author suggests using the powerkernel/yii2-fontawesome package instead.

Font Awesome extension for Yii2

Installs: 253

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Type:yii2-extension

2.0.4 2018-12-16 13:39 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:00:06 UTC


README

Font Awesome extension for Yii2

Latest Stable Version Total Downloads Build Status

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require powerkernel/yii2-fontawesome "~2.0"

or add

"powerkernel/yii2-fontawesome": "~2.0"

to the require section of your composer.json file.

Usage

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

<?= 
    \powerkernel\fontawesome\Icon::widget([
        'prefix'=>'fas', // Optional, can be fab, fas, far or fal
        'name' => 'address-book', // icon name
        'size'=>'fa-5x', // Optional
        'styling'=>'fa-spin' // Optional
    ]) 
?>

For more details about how to use, see: https://fontawesome.com/how-to-use