codeat3 / blade-simple-icons
一个在 Laravel Blade 视图中轻松使用 "Simple Icons" 的包。
5.10.0
2024-09-21 14:06 UTC
Requires
- php: ^7.4|^8.0
- blade-ui-kit/blade-icons: ^1.1
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- codeat3/blade-icon-generation-helpers: ^0.8
- codeat3/phpcs-styles: ^1.0
- orchestra/testbench: ^6.0|^7.0|^8.0|^9.0
- phpunit/phpunit: ^9.0|^10.5|^11.0
- dev-main
- 5.10.0
- 5.9.0
- 5.8.0
- 5.7.0
- 5.6.0
- 5.5.0
- 5.4.0
- 5.3.0
- 5.2.0
- 5.1.0
- 5.0.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.4.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.95.0
- 1.94.0
- 1.93.0
- 1.92.0
- 1.91.0
- 1.90.0
- 1.89.0
- 1.88.0
- 1.87.0
- 1.86.0
- 1.85.0
- 1.84.0
- 1.83.0
- 1.82.0
- 1.81.0
- 1.80.0
- 1.79.0
- 1.78.0
- 1.77.0
- 1.76.0
- 1.75.0
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.70.0
- 1.69.0
- 1.68.0
- 1.67.0
- 1.66.0
- 1.65.0
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.60.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.1
- 1.30.1
- 1.29.1
- 1.28.1
- 1.27.1
- 1.26.1
- 1.25.1
- 1.24.1
- 1.23.1
- 1.22.1
- 1.21.1
- 1.20.1
- 1.19.1
- 1.18.1
- 1.17.1
- 1.16.1
- 1.15.1
- 1.14.1
- 1.13.1
- 1.12.1
- 1.11.1
- 1.10.1
- 1.9.1
- 1.8.1
- 1.7.1
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- 0.5
- 0.2.0
- 0.1.0
- dev-feature/update-bffc992b7d1365ee44b1683f8397e9f7a44d0c2c
- dev-feature/update-a766e8488428aed964b3ac2caf54f0b4127ffee6
- dev-feature/update-c53cf80b9732686d198a47d0e53ccc3698378cef
This package is auto-updated.
Last update: 2024-09-23 12:16:35 UTC
README
Blade Simple Icons
一个在 Laravel Blade 视图中轻松使用 Simple Icons 的包。
要查看所有可用图标,请参阅 SVG 目录 或在 simpleicons.org 预览。
要求
- PHP 7.4 或更高版本
- Laravel 8.0 或更高版本
安装
composer require codeat3/blade-simple-icons
更新
当更新库时,请参阅 更新指南
。
Blade 图标
Blade Simple Icons 在底层使用 Blade 图标。有关其他功能,请参阅 Blade 图标 README。我们还建议使用此库时启用 图标缓存。
配置
Blade Simple Icons 还提供使用 Blade 图标功能的能力,如默认类、默认属性等。如果您想配置这些,请发布 blade-simple-icons.php
配置文件
php artisan vendor:publish --tag=blade-simple-icons-config
用法
图标可以作为自闭合的 Blade 组件使用,这些组件将被编译为 SVG 图标
<x-si-laravelnova/>
您也可以向图标组件传递类
<x-si-laravelnova class="w-6 h-6 text-gray-500"/>
甚至使用内联样式
<x-si-laravelnova style="color: #555"/>
原始 SVG 图标
如果您想将原始 SVG 图标作为资产使用,可以使用以下方式发布它们
php artisan vendor:publish --tag=blade-si --force
然后在您的视图中使用它们,如下所示
<img src="{{ asset('vendor/blade-si/laravelnova.svg') }}" width="10" height="10"/>
变更日志
查看此存储库中的 变更日志 以获取所有最新更改。
维护者
Blade Simple Icons 由 Swapnil Sarwe 开发和维护。
许可
Blade Simple Icons 是开源软件,使用 MIT 许可证 许可。