themesberg/flowbite-blade-icons
Use Flowbite Icons in Laravel Blade via easy SVG components and the @svg directive. Supports outline and solid sets, classes and attributes, optional config publishing, and Blade Icons features like caching. Requires PHP 8.1+ and Laravel 9+.
blade-ui-kit/blade-icons, this package leverages Laravel’s native Blade component system, ensuring zero architectural disruption. Icons compile to inline SVGs, eliminating external HTTP requests or asset pipelines.class="w-6 h-6 text-blue-500"), enabling zero-JS dynamic styling via Tailwind’s utility classes.php artisan vendor:publish --tag=flowbite-blade-icons-config
Then enable caching in config/flowbite-blade-icons.php:
'cache' => true,
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Blade Component Breaks | Low | Medium | Test with php artisan view:clear and cache invalidation. Fallback to raw SVGs. |
| Icon Set Gaps | Medium | High | Audit Flowbite Icons against requirements. Use as a supplemental set if critical icons are missing. |
| Performance Overhead | Low | Low | Enable caching ('cache' => true) and monitor view compilation times. |
| Laravel Version Drift | Medium | Medium | Pin version in composer.json (e.g., ^1.4). Monitor Packagist for updates. |
| Maintenance Stagnation | High | Medium | Fork the repo if updates stall. MIT license allows modifications. |
| Tailwind CSS Conflicts | Low | Low | Test with !important overrides if needed (rare for SVGs). |
Design System Alignment:
flowbite/laravel)? If not, does this package justify adopting them for icon consistency?Performance Requirements:
'cache' => true) and test compilation times.Long-Term Maintenance:
composer update (or pin versions).Team Skills:
<x-fwb-... /> syntax.Cost vs. Alternatives:
flowbite/laravel) for design system cohesion.| Step | Action | Time Estimate | Dependencies |
|---|---|---|---|
| 1. Pre-Install Audit | Verify Laravel/PHP version compatibility (laravel --version, php -v). |
10 mins | None |
| 2. Install Package | composer require themesberg/flowbite-blade-icons. |
5 mins | Composer, Laravel project |
| 3. Test Basic Usage | Replace 3–5 manual SVGs with <x-fwb-o-... /> in Blade views. |
30 mins | Existing Blade views |
| 4. Configure Caching | Publish config: php artisan vendor:publish --tag=flowbite-blade-icons-config. Enable 'cache' => true. |
15 mins | Blade Icons caching support |
| 5. Publish Raw SVGs | (Optional) Publish SVGs: php artisan vendor:publish --tag=flowbite-blade-icons --force. |
10 mins | Asset pipeline (if using raw SVGs) |
| 6. Update Docs | Document new icon syntax in team wiki (e.g., <x-fwb-o-settings />). |
20 mins | Confluence/Notion |
| 7. Performance Test | Load-test high-traffic views (e.g., admin dashboard) with caching enabled. | 30 mins | Load testing tools (e.g., Laravel Dusk) |
| 8. Rollout | Replace remaining manual SVGs in phases (e.g., 10% of views/week). | Ongoing | CI/CD pipeline |
@svg('fwb-o-settings', 'w-6 h-6') alongside <x-fwb-o-settings class="w-6 h-6" />.currentColor, so they work with dark: variants and dynamic classes (e.g., text-{color}-500).flowbite/laravel, icons will visually align with buttons, modals, etc., reducing design discrepancies.public/vendor/flowbite-blade-icons/ for use with <img> tags (useful if not using Blade components).composer update themesberg/flowbite-blade-icons. No manual SVG maintenance required.'cache' => true for performance). Publish config only if using default classes/attributes.How can I help you explore Laravel packages today?