yii-ui / yii2-material-design-icons
Yii2 Asset for Material Design Icons.
Installs: 876
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=7.1
- npm-asset/mdi--font: ^5.3
- yiisoft/yii2: ^2.0.26
Requires (Dev)
- roave/security-advisories: dev-master
This package is not auto-updated.
Last update: 2023-08-19 07:22:37 UTC
README
This is an Yii framework 2.0 asset for the Material Design Icons.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require yii-ui/yii2-material-design-icons
or add
"yii-ui/yii2-material-design-icons": "~1.0.0"
to the require section of your composer.json
file.
Usage
in your layout file (ex. views/layouts/main.php):
\yiiui\yii2materialdesignicons\MaterialDesignIconsAsset::register($this);
or as dependency in your app asset bundle:
namespace app\assets; use yii\web\AssetBundle; class AppAsset extends AssetBundle { public $sourcePath = '@app/assets'; public $js = [ 'js/main.js', ]; public $css = [ 'css/main.scss', ]; public $depends = [ 'yiiui\yii2materialdesignicons\MaterialDesignIconsAsset' ]; }
More Examples will be added soon at https://www.yii-ui.com/yii2-material-design-icons. For full list of icons see Material Design Icons Documentation.
Documentation
Documentation will be added soon at https://www.yii-ui.com/yii2-material-design-icons.
License
yii2-material-design-icons is released under the MIT License. See the LICENSE.md for details.