onix-systems-php/blade-icons 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-07