ympact / laravel-icon-registry
A searchable catalogue of the icons a Laravel app can draw, across Flux, Blade Icons and your own providers.
v1.0.0
2026-11-09 15:48 UTC
Requires
- php: ^8.3
- illuminate/console: ^12.0|^13.0
- illuminate/filesystem: ^12.0|^13.0
- illuminate/support: ^12.0|^13.0
- illuminate/validation: ^12.0|^13.0
- illuminate/view: ^12.0|^13.0
- laravel/prompts: ^0.3
Requires (Dev)
- blade-ui-kit/blade-icons: ^1.10
- larastan/larastan: ^3.12
- laravel/pint: ^1.32
- livewire/flux: ^2.21
- mockery/mockery: ^1.6.15
- orchestra/testbench: ^10.12|^11.3
- pestphp/pest: ^4.7|^5.2
- pestphp/pest-plugin-browser: ^4.3|^5.0
- pestphp/pest-plugin-laravel: ^4.1|^5.0
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^12.5|^13.3
Suggests
- blade-ui-kit/blade-icons: Lists every registered Blade Icons set
- livewire/flux: Lists Flux's icons and the icons in resources/views/flux/icon, including those built by ympact/flux-icons
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-09 15:55:24 UTC
README
A searchable catalogue of the icons a Laravel application can draw, across Flux, Blade Icons and your own providers. Store an icon key, validate it, draw it, and let people find icons by the words they actually type.
Icons::search('dustbin'); // tabler.trash, best match first $request->validate(['icon' => ['nullable', new IconExists]]);
<x-registry-icon :icon="$item->icon" class="size-5" />
Features
- Providers for Flux (its own icons, your
resources/views/flux/icon, and everything built there by ympact/flux-icons) and for every Blade Icons set. Both optional, and you can add your own. - Scored search over names, labels, aliases, use cases and purposes, with typo tolerance.
- A metadata file for labels and aliases, which the doctor command prunes without losing your comments.
- Purposes: one icon and label per meaning (
action.delete), so similar actions look the same across your app. - An
IconExistsrule that suggests the closest icon. - A cache that
php artisan optimizebuilds. With opcache, drawing a few icons does not load the whole set. - A VS Code extension that completes icon keys as you type. See Editor support.
Requirements
| PHP | 8.3+ |
| Laravel | 12 or 13 |
| Optional | livewire/flux 2, blade-ui-kit/blade-icons 1.10+ |
Installation
composer require ympact/laravel-icon-registry
See the documentation for configuration and usage.
Development
composer test # Pest composer test:browser # the Browser suite (installs Playwright's Chromium first) composer analyse # PHPStan, level 8 composer lint # Pint composer serve # the workbench application, at http://localhost:8000
License
MIT. See LICENSE.md.