actb/blade-github-octicons
Composer 安装命令:
composer require actb/blade-github-octicons
包简介
A package to easily make use of Github octicons in your Laravel blade views.
README 文档
README
Package is still under development.
A package to easily make use of Github Octicons in your Laravel Blade views.
For a full list of available icons see the SVG directory.
Requirements
- PHP 7.4 or higher
- Laravel 8.0 or higher
Icon information
This package comes with the Github Octicons. And 2 different sizes. 14px and 26px The sizes are defined at the end off the icon name by example:
<x:go-zap-16/>
<x:go-zap-24/>
Install
Via composer:
$ composer require actb/blade-github-octicons
Usage
Icons can be used a self-closing blade components which will be compiled to SVG icons.
<x-go-arrow-left/>
You can also pass classes to your icon components:
<x-go-arrow-left class="w-6 h-6 text-gray-600"/>
And even use inline styles:
<x-go-arrow-left 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-github-octicons --force
Then use them in your views like:
<img src="{{ asset('vendor/blade-feather-icons/arrow-left.svg') }}" width="10" height="10"/>
Blade icons
Blade Github octicons uses blade icons under the hood. Please refer to the Blade icons readme for additional functionality.
Testing
$ composer test
Contributing
Please see CONTRIBUTING.md for details.
Security
If you discover any security issues, please email topairy@gmail.com unstead of using the issue tracker.
Credits
License
The MIT license (MIT). Please see License file for more information.
actb/blade-github-octicons 适用场景与选型建议
actb/blade-github-octicons 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 58.21k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2020 年 06 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 actb/blade-github-octicons 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 actb/blade-github-octicons 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 58.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-25