thtmorais / yii2-icons
Yii PHP 框架的图标资源
1.0.2
2024-05-05 22:44 UTC
Requires
- npm-asset/feather-icons: 4.29.2
- npm-asset/flag-icons: 7.2.1
- yiisoft/yii2: ~2.0.0
README
Yii PHP 框架的图标资源
安装
安装此扩展的首选方法是使用 composer.
运行以下命令之一
composer require thtmorais/yii2-icons "*"
或者在您的 composer.json
文件的 require 部分添加
"thtmorais/yii2-icons": "*"
to
用法
扩展安装后,只需在您的代码中通过
Feather 图标使用
<?php use thtmorais\icons\FeatherIconsAsset; FeatherIconsAsset::register($this); FlagIconsAsset::register($this); ?>
您可以在 这里 预览所有 Feather 图标。
您可以在 这里 预览所有 Flag 图标。