xutl / yii2-fontawesome-asset
The fontawesome extension for the Yii framework
Installs: 2 582
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- bower-asset/font-awesome: ~4.0
- yiisoft/yii2: *
README
安装
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist xutl/yii2-fontawesome-asset
or add
"xutl/yii2-fontawesome-asset": "~2.0.0"
to the require
section of your composer.json
.
\xutl\fontawesome\Asset::register($this);
Use CDN
'components' => [ 'assetManager' => [ 'bundles' => [ 'xutl\fontawesome\Asset' => [ 'sourcePath' => null, // do not publish the bundle 'css' => [ '//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css', ] ] ] ], ],