onix-systems-php/blade-icons
最新稳定版本:v1.0.0
Composer 安装命令:
composer require onix-systems-php/blade-icons
包简介
An easy way inline SVG images in your Blade templates.
README 文档
README
Implements orchidsoftware/blade-icons for Hyperf.
Installation
To install this package, run the following command in your command line:
$ composer require onix-systems-php/blade-icons
Basic Usage
Publish config:
php bin/hyperf.php vendor:publish onix-systems-php/blade-icons
Add to config/autoload/view.php
'components' => [ 'hyperf-icon' => \OnixSystemsPHP\HyperfIcons\Component\IconComponent::class, ],
When calling the directory method with the first argument, we pass the prefix to call our icons and the second argument is the directory where they are located.
After that, we can call the component in our blade templates:
<x-hyperf-icon path="fa.home" />
If you use one or two sets of icons that do not repeat, then it is not necessary to specify a prefix in the component:
<x-hyperf-icon path="home" />
You can also list some attributes that should be applied to your icon:
<x-hyperf-icon path="home" class="icon-big" width="2em" height="2em" />
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-07