virtualwonders/yii2-fontawesome
最新稳定版本:1.0.0
Composer 安装命令:
composer require virtualwonders/yii2-fontawesome
包简介
An asset bundle for Font Awesome icons with Bootstrap 4.
关键字:
README 文档
README
An asset bundle for Font Awesome icons with Bootstrap 4.
Installation
The preferred way to install this extension is through Composer.
Either run
php composer.phar require --prefer-dist virtualwonders/yii2-fontawesome "*"
or add
"virtualwonders/yii2-fontawesome": "*"
to the require section of your composer.json file.
Usage
Add in the view as follows:
use virtualwonders\fontawesome\FontAwesomeAsset; FontAwesomeAsset::register($this);
Or, use the minified version:
use virtualwonders\fontawesome\FontAwesomeMinifiedAsset; FontAwesomeMinifiedAsset::register($this);
It can also be added as a dependency on your AppAsset, as follows:
public $depends = [ 'yii\web\YiiAsset', 'yii\bootstrap4\BootstrapAsset', 'yii\bootstrap4\BootstrapPluginAsset', 'virtualwonders\fontawesome\FontAwesomeAsset' ];
统计信息
- 总下载量: 3.63k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-03