定制 enso-san/blade-gms-of 二次开发

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

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

enso-san/blade-gms-of

最新稳定版本:1.0

Composer 安装命令:

composer require enso-san/blade-gms-of

包简介

A package to easily make use of Googles Material Design Symbols (Outlined/Filled) in your Laravel Blade views.

README 文档

README

Latest Stable Version Total Downloads

A package to easily make use of Google's Material Symbols (Outlined/Filled) in your Laravel Blade views.
For a full list of available icons you can preview them at Material Symbols.

See https://github.com/topics/blade-gms for all available style packages.

Requirements

  • PHP 8.4 or higher
  • Laravel 11.0 or higher

Installation

As Material Symbols offers a lot of different styles, you can choose a specific one by using the corresponding package.
See https://github.com/topics/blade-gms for all available style packages.

composer require enso-san/blade-gms-of

Enum class

For convenience, the package has an enum class for all available icon names.
You can use the corresponding enum entries to avoid making typos and make use of IDE auto-completion.
For example when you want to use Material Symbols in your Filament admin panel resources or pages, instead of writing out the string "GMS_of-shopping_cart_checkout" you can use:

protected static string $navigationIcon = GMS_of::SHOPPING_CART_CHECKOUT;

Usage

Icons can be used as self-closing Blade components which will be compiled to SVG icons:

<x-GMS_of-home/>

You can also pass classes to your icon components:

<x-GMS_of-home class="w-6 h-6 text-gray-500"/>

And even use inline styles:

<x-GMS_of-home style="color: #555"/>

Raw SVG Icons

If you want to use the raw SVG icons as assets, you can publish them using:

php artisan vendor:publish --tag=blade-gms-of --force

Configuration

Blade Material Symbols also offers the ability to use features from Blade Icons like default classes, default attributes, etc. If you'd like to configure these, publish the blade-gms.php config file:

php artisan vendor:publish --tag=blade-gms-of-config

Blade Icons

Blade Material Symbols uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality. We also recommend to enable icon caching with this library.

Then use them in your views like:

<img src="{{ asset('vendor/blade-gms-of/home.svg') }}" width="10" height="10"/>

Maintainers

Blade Material Symbols is developed and maintained by Daniel Hoffmann.

License

Blade Material Symbols is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 34
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固