kienso/blade-google-material-symbols 问题修复 & 功能扩展

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

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

kienso/blade-google-material-symbols

Composer 安装命令:

composer require kienso/blade-google-material-symbols

包简介

A package to easily make use of Google Material Symbols Icons in your Laravel Blade views.

README 文档

README

A package to easily make use of Google Material Symbols in your Laravel Blade views.

For a full list of available icons see the SVG directory or preview them at fonts.google.com/icons.

Requirements

  • PHP 8.3 or higher
  • Laravel 11.0 or higher

Installation

composer require kienso/blade-google-material-symbols

Configuration

Blade Google 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-material-symbols.php config file:

php artisan vendor:publish --tag=blade-material-symbols

Usage

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

<x-gmsi-o-home/>

You can also pass classes to your icon components:

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

And even use inline styles:

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

The rounded icons can be referenced like this:

<x-gmsi-r-home/>

The sharp icons can be referenced like this:

<x-gmsi-s-home/>

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-google-material-symbols --force

Then use them in your views like:

<img src="{{ asset('vendor/blade-google-material-symbols/o-adjustments.svg') }}" width="10" height="10"/>

Changelog

Check out the CHANGELOG in this repository for all the recent changes.

Maintainers

Blade Google Material Symbols is developed and maintained by Kienso.

License

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

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固