| Package Data | |
|---|---|
| Maintainer Username: | digitlab |
| Maintainer Contact: | nick@digitlab.co.za (Nicholas Wiersma) |
| Package Create Date: | 2016-07-25 |
| Package Last Update: | 2016-08-11 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-30 03:08:51 |
| Package Statistics | |
|---|---|
| Total Downloads: | 724 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 0 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
An SVG icon injector for Laravel Blade.
Install using composer:
composer require digitlab/blade-icons
Add the service provider in app/config/app.php:
DigitLab\BladeIcons\BladeIconsServiceProvider::class,
Create the cache path (defaults to /storage/framework/icons) and resource path (defaults to /resources/svgs) as specified in your config.
You can insert an SVG resource using the blade syntax @icon('name').
To override svg attributes, add them in an array: @icon('name', ['width' => 300]).
It is suggested that you add the following css to style your icons:
.icon {
display: inline-block;
vertical-align: text-top;
fill: currentColor;
}
Blade Icons is licensed under The MIT License (MIT).