secondnetwork/blade-google-material-symbols
Composer 安装命令:
composer require secondnetwork/blade-google-material-symbols
包简介
A package to easily make use of blade-google-material-symbols in your Laravel Blade views.
README 文档
README
A Blade icon pack for the Google Material Symbols set, designed for easy use in Laravel projects. This package is built on top of the excellent blade-ui-kit/blade-icons package.
This package provides three primary icon styles: Outlined, Rounded, and Sharp. The Filled style is cleverly integrated by appending a -fill suffix to any icon name.
⚠️ Important Notice
Please note: In the current version, the icons are only accessible via the @svg() directive (or the {{ svg() }} helper) provided by blade-ui-kit/blade-icons. The previous component syntax (e.g., <x-gmso-home />) is not functional at this time. We are actively working to restore this functionality in a future update.
Requirements
- PHP 8.1+
- Laravel 9.0+
blade-ui-kit/blade-icons(will be installed automatically)
Installation
You can install the package via composer:
composer require secondnetwork/blade-google-material-symbols
The package will automatically register itself.
Usage
Use the @svg() or {{ svg() }} directive to render an icon. The icons are identified by a prefix corresponding to their style.
| Style | Prefix | Example (Outlined) | Example (Filled) |
|---|---|---|---|
| Outlined | gmso |
@svg('gmso-home') |
@svg('gmso-home-fill') |
| Rounded | gmsr |
@svg('gmsr-home') |
@svg('gmsr-home-fill') |
| Sharp | gmss |
@svg('gmss-home') |
@svg('gmss-home-fill') |
How the "Filled" Style Works
Instead of providing a separate set for filled icons, you can get the filled version of any icon in any set by simply appending the -fill suffix to the icon's name.
Outlined Example:
{{-- Renders the outlined home icon --}} @svg('gmso-home') {{-- Renders the filled home icon --}} @svg('gmso-home-fill')
Rounded Example:
{{-- Renders the rounded settings icon --}} @svg('gmsr-settings') {{-- Renders the filled rounded settings icon --}} @svg('gmsr-settings-fill')
Styling
You can easily style the icons by passing an array of attributes like class, width, and height as the second parameter to the directive.
{{-- Using Tailwind CSS classes for size and color --}} @svg('gmso-check-circle', ['class' => 'size-8 text-green-500']) {{-- Setting explicit width and height --}} @svg('gmsr-delete-fill', ['class' => 'text-red-600', 'width' => '24', 'height' => '24'])
Configuration
If you wish to customize the component prefixes, you can publish the configuration file:
php artisan vendor:publish --provider="secondnetwork\MaterialSymbols\BladeMaterialSymbolsServiceProvider"
This will create a config/blade-google-material-symbols.php file in your project. You can modify the prefixes for each set as needed.
// config/blade-google-material-symbols.php return [ 'sets' => [ 'material-outlined' => [ 'path' => __DIR__.'/../resources/svg/material-outlined', 'prefix' => 'gmso', ], 'material-rounded' => [ 'path' => __DIR__.'/../resources/svg/material-rounded', 'prefix' => 'gmsr', ], 'material-sharp' => [ 'path' => __DIR__.'/../resources/svg/material-sharp', 'prefix' => 'gmss', ], ], // You can also define a default class that will be applied to all icons. 'default_class' => 'inline-block', ];
Maintainers
blade-google-material-symbols is developed and maintained by secondnetwork.
License
The MIT License (MIT). Please see License File for more information.
secondnetwork/blade-google-material-symbols 适用场景与选型建议
secondnetwork/blade-google-material-symbols 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 52 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「blade」 「blade-google-material-symbols」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 secondnetwork/blade-google-material-symbols 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 secondnetwork/blade-google-material-symbols 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 secondnetwork/blade-google-material-symbols 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Alfabank REST API integration
Render blade templates into a PSR-7 Response object.
A tiny Flask-like PHP microframework where each public method is an endpoint and routes are inferred from method names.
The EdgestashBlade Laravel package adds Edgestash support to Blade. Edgestash is a Varnish Enterprise module that processes Mustache templates on the edge.
Laravel package for Accurate Online API integration.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-25