kl83 / yii2-fontawesome-asset
Yii2 FontAwesome asset
v1.0.0
2017-11-23 15:16 UTC
Requires
- bower-asset/font-awesome: 4.*
- yiisoft/yii2: ^2.0.0
This package is auto-updated.
Last update: 2024-11-09 14:17:51 UTC
README
Font Awesome gives you scalable vector icons that can instantly be customized — size, color, drop shadow, and anything that can be done with the power of CSS.
Project home page http://fontawesome.io/.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require kl83/yii2-fontawesome-asset ~1.0.0
or add
"kl83/yii2-fontawesome-asset": "~1.0.0"
to the require section of your composer.json file.
Usage
Adding an asset as a dependence on another asset.
class SomeAsset extends \yii\web\AssetBundle { ... public $depends = [ 'kl83\assets\FontawesomeAsset', ]; ... }
Adding an asset within a view.
kl83\assets\FontawesomeAsset::register($this);
License
MIT License