codeat3 / blade-simple-icons
A package to easily make use of "Simple Icons" in your Laravel Blade views.
Fund package maintenance!
swapnilsarwe
Installs: 151 735
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 0
Open Issues: 2
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.20.0
- 5.19.0
- 5.18.0
- 5.17.0
- 5.15.0
- 5.14.1
- 5.14.0
- 5.13.0
- 5.12.0
- 5.11.0
- 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-b9a183354cf2c10f339202490c265fbcafe1f7c9
- dev-feature/update-0729136eeb55182260a33604e81ca6fc67997a73
- dev-feature/update-a766e8488428aed964b3ac2caf54f0b4127ffee6
- dev-feature/update-c53cf80b9732686d198a47d0e53ccc3698378cef
This package is auto-updated.
Last update: 2024-12-16 12:18:59 UTC
README
Blade Simple Icons
A package to easily make use of Simple Icons in your Laravel Blade views.
For a full list of available icons see the SVG directory or preview them at simpleicons.org.
Requirements
- PHP 7.4 or higher
- Laravel 8.0 or higher
Installation
composer require codeat3/blade-simple-icons
Updating
Please refer to the upgrade guide
when updating the library.
Blade Icons
Blade Simple Icons uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality. We also recommend to enable icon caching with this library.
Configuration
Blade Simple Icons 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-simple-icons.php
config file:
php artisan vendor:publish --tag=blade-simple-icons-config
Usage
Icons can be used as self-closing Blade components which will be compiled to SVG icons:
<x-si-laravelnova/>
You can also pass classes to your icon components:
<x-si-laravelnova class="w-6 h-6 text-gray-500"/>
And even use inline styles:
<x-si-laravelnova 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-si --force
Then use them in your views like:
<img src="{{ asset('vendor/blade-si/laravelnova.svg') }}" width="10" height="10"/>
Changelog
Check out the CHANGELOG in this repository for all the recent changes.
Maintainers
Blade Simple Icons is developed and maintained by Swapnil Sarwe.
License
Blade Simple Icons is open-sourced software licensed under the MIT license.