承接 kienso/blade-google-material-symbols 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

kienso/blade-google-material-symbols

最新稳定版本:1.0.0

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.

统计信息

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

GitHub 信息

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

其他信息

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