ympact/laravel-icon-registry
Larablocks Analysis
ympact/laravel-icon-registry works with Laravel 12 and 13 (latest release v1.2.0, Nov 26, 2026).
Recommendation checks
Use with careUse with care: meets 2 of 5 checks.
- Works with Laravel 13, the current version
- Released in the last 12 months (Nov 26, 2026)
- First released under 90 days ago
- 1,054 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Too new to judge- Last stable release: Nov 26, 2026.
- 3 releases in the last 12 months.
- First released: Nov 9, 2026.
- Monthly downloads: 1,054.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.
| Install | |
|---|---|
composer require ympact/laravel-icon-registry |
|
| Latest Version: | v1.2.0 |
| PHP: | ^8.3 |
| Laravel: | 12 · 13 |
| License: | MIT |
| Last Updated: | Nov 26, 2026 |
| Links: | GitHub · Packagist |
Icon Registry
Keep icon use consistent across a Laravel application. Icon Registry is a searchable catalogue of every icon your application can draw, across Flux, Blade Icons and your own providers, with one place to decide which icon means what. 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" />
Why use it
Without a shared source, the icon for "delete" gets decided again in every view: a trash can here, a cross there, each named the way one icon set happens to name it. The registry gives those decisions one home.
// resources/icons/purposes.php
return [
'action.delete' => ['icon' => 'tabler.trash', 'label' => 'Delete'],
];
<x-registry-icon purpose="action.delete" class="size-5" />
- One icon per meaning. Views ask for
action.delete, not a specific icon, so every delete action looks the same and changing the icon is a one-line edit. - One accessible label per meaning. A purpose carries its translatable label, so screen reader
users hear the same name everywhere you ask for it with
labelled. - One way to draw, whatever the icon set. The same tag draws Flux, Blade Icons and custom icons, and the stored key does not change when you switch how an icon is drawn.
- Accessible by default. Icons are decorative unless you name them with
label, so nobody has to rememberaria-hiddenin each view. - Mistakes are caught early.
IconExistsrejects an unknown key when it is saved, andicon-registry:doctorfails in CI when a purpose or metadata entry refers to an icon that no longer exists. - You can see what is in use.
icon-registry:scanlists the icons your Blade and PHP source refers to, which helps spot near-duplicates before they spread.
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.
Alternatives to ympact/laravel-icon-registry
A beautiful icon picker component for Filament v5 using blade-ui-kit/blade-icons
An always-current Lucide blade-icons set and PHP enum for Laravel and Filament,...
Phosphor icons for Filament 4 and 5 as a backed enum that scales with Filament's...
Custom Iconify-based icon set for Blade Icons (Blade UI Kit), usable with TallSt...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.2.0 | ^8.3 | ^12.0| | MIT | |
| v1.1.0 | ^8.3 | ^12.0| | MIT | |
| v1.0.0 | ^8.3 | ^12.0| | MIT |