artisanpack-ui/icons
Register and use your own SVG icon sets in Laravel with minimal overhead. Integrates with blade-ui-kit/blade-icons and Livewire UI, supports config or event-based registration, and makes it easy to add premium sets like Font Awesome Pro.
blade-ui-kit/blade-icons, allowing TPMs to decouple icon management from core logic. This aligns well with Laravel’s modular design and Laravel Packages best practices.ap.icons.register-icon-sets) enables seamless integration with other packages, making it a strong candidate for a shared dependency in a microservices or monorepo architecture.blade-ui-kit/blade-icons (v1.8+), which is a well-maintained package. Compatibility is high for Laravel 12/13 projects.resource_path() and filesystem integration, ensuring consistency with existing asset pipelines (e.g., Vite, Laravel Mix).livewire-ui-components, making it ideal for SPAs or hybrid applications.ap.icons.register-icon-sets filter introduces a dependency on Laravel’s filter system, which may require additional testing for edge cases (e.g., race conditions in service provider booting).resources/ may need to be included in asset pipelines or treated as static files.blade-ui-kit/blade-icons.config/artisanpack/icons.php.<x-icon-* /> syntax.blade-ui-kit/blade-icons, so existing icon components will continue to work.IconSetRegistration interface. Provide a wrapper or adapter if legacy packages need integration.resource_path('icons/...')).config/artisanpack/icons.php, which is version-controlled and easy to audit.config/artisanpack/icons-local.php) for local overrides.spatie/laravel-package-tools to manage icon assets as part of the package.php artisan artisanpack:icons:list if available).IconSetRegistration class or create a custom registration handler.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Missing icon file | Broken icon display | Log warnings; provide fallback icons or gracefully degrade (e.g., text labels). |
| Incorrect icon path configuration | All icons from a set fail to load | Validate paths during registration; use absolute paths. |
| Prefix collision | Icons override each other | Enforce prefix validation; use unique, descriptive prefixes. |
| Filesystem permissions | Icons fail to load | Ensure the web server has read access to icon directories. |
| Event registration race conditions | Icon sets not registered | Use service provider priorities or lazy-load icon registration. |
| SVG file corruption | Icons render incorrectly | Validate SVG files during registration; use a tool like svgo for optimization. |
php artisan artisanpack:icons:list).<x-icon-|>).How can I help you explore Laravel packages today?