通过 composer安装.
项目中直接运行
php composer.phar require bestyii/yii2-bootstrap-icons
或者添加下面代码到 composer.json
文件
"bestyii/yii2-bootstrap-icons": "*"
Once the extension is installed, simply use it in your code by :
You set url, where locate json file OR set path for scan
class ThemeAsset extends AssetBundle
{
public $css = [
];
public $js = [
];
public $depends = [
BootstrapIconAsset::class
];
OR
BootstrapIconAsset::register($this);