定制 onix-systems-php/blade-icons 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱: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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固