Download the PHP package brunocfalcao/blade-feather-icons without Composer
On this page you can find all versions of the php package brunocfalcao/blade-feather-icons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brunocfalcao/blade-feather-icons
More information about brunocfalcao/blade-feather-icons
Files in brunocfalcao/blade-feather-icons
Package blade-feather-icons
Short Description A package to easily make use of Feather Icons in your Laravel Blade views.
License MIT
Homepage https://github.com/brunocfalcao/blade-feather-icons
Informations about the package blade-feather-icons
Blade Feather Icons
Changes in v6.0.4
Adds shared contributor and agent guidance in PROJECT.md, with thin
AGENTS.md and CLAUDE.md pointers. Icon files, rendering, configuration,
commands and dependency requirements are unchanged.
A Laravel package to easily use Feather Icons in your Blade views as inline SVG components.
For a full list of available icons, see feathericons.com.
โจ Features
- ๐จ 287+ Beautiful Icons - Simple, consistent, open-source icons
- ๐ Zero Dependencies - No JavaScript required, pure inline SVG
- ๐ Laravel Integration - Native Blade component syntax
- ๐ฏ Full Control - Add classes, styles, and attributes easily
- โก Performance - Cached and optimized SVG rendering
- ๐ง Customizable - Tailwind CSS and any CSS framework compatible
- ๐ NPM Sync Command - Keep icons updated from official Feather Icons releases
๐ Requirements
- PHP: 8.4 or higher
- Laravel: 12.0 or higher
- blade-ui-kit/blade-icons: ^1.0
๐ฆ Installation
Install the package via Composer:
The package will automatically register itself via Laravel's package auto-discovery.
๐ Usage
Basic Usage
Icons can be used as self-closing Blade components:
Adding Classes
Perfect for Tailwind CSS or any CSS framework:
Adding Inline Styles
Adding Multiple Attributes
Using with Alpine.js
Common Examples
๐จ Available Icons
All 287 Feather icons are available. Common icons include:
Interface: home, menu, x, check, chevron-down, chevron-up, arrow-right, arrow-left, more-vertical, more-horizontal
Media: play, pause, volume, volume-x, music, video, image, camera, film
Communication: mail, message-circle, phone, at-sign, bell, send
Files: file, folder, download, upload, save, trash, edit, copy
Social: heart, star, thumbs-up, share, bookmark
E-commerce: shopping-cart, credit-card, dollar-sign, tag
Status: check-circle, x-circle, alert-circle, alert-triangle, info, help-circle
System: settings, user, lock, unlock, eye, eye-off, search, filter
๐ง Publishing Assets (Optional)
If you need the raw SVG files as static assets:
This will publish the icons to public/vendor/feather-icons/.
Then use them in your views:
Note: This is rarely needed. Using Blade components (default) is recommended for better performance and control.
๐ Syncing Icons from NPM
Want to keep your icons up-to-date with the latest Feather Icons releases? You can sync SVG files directly from the npm package.
Prerequisites
First, install the official Feather Icons npm package in your project:
Sync Command
Run the sync command to update your package's SVG files:
This will:
- โ
Copy all icons from
node_modules/feather-icons/dist/iconsto the package - โ Detect new, updated, and unchanged icons
- โ Display a detailed progress report
Dry Run
Preview changes without actually copying files:
Example output:
Custom NPM Path
If your node_modules is in a non-standard location:
When to Sync
- ๐ฆ After updating the
feather-iconsnpm package - ๐ When new icons are released by Feather Icons
- ๐ง If you manually modified icons and want to revert to originals
Note: This is a unique feature not available in other Blade icon packages! It gives you full control over your icon versions.
๐งช Testing
The package includes comprehensive Pest tests:
Run tests with coverage:
๐ Advanced Usage
Using the Helper Function
You can also use the svg() helper function:
With multiple attributes:
Custom Prefix
If you want to change the default feathericon- prefix, you can extend the service provider in your own application.
Blade Icons Features
This package is built on top of Blade Icons. You can use all Blade Icons features:
๐ Troubleshooting
Icons not showing?
- Make sure you've installed the package:
composer require brunocfalcao/blade-feather-icons - Clear Laravel's cache:
php artisan view:clear && php artisan cache:clear - Check your icon name matches the filename in
resources/svg/
Wrong icon name?
Icon names use kebab-case. For example:
alert-triangle.svgโ<x-feathericon-alert-triangle />arrow-up-right.svgโ<x-feathericon-arrow-up-right />
Using with Livewire?
Blade Feather Icons works perfectly with Livewire. Just use the components as normal:
๐ Changelog
Please see CHANGELOG for recent changes.
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
๐จโ๐ป Maintainers
Blade Feather Icons is developed and maintained by Bruno Falcao.
Blade Icons is developed and maintained by Dries Vints.
Feather Icons is created by Cole Bemis.
๐ License
Blade Feather Icons is open-sourced software licensed under the MIT license.
Feather Icons is also licensed under the MIT license.
๐ Related Packages
- Blade Icons - The foundation for this package
- Blade Heroicons - Heroicons for Laravel
- Blade Font Awesome - Font Awesome for Laravel
Love this package? Give it a โญ๏ธ on GitHub and follow @brunocfalcao on Twitter!
All versions of blade-feather-icons with dependencies
blade-ui-kit/blade-icons Version ^1.0
illuminate/support Version ^12.0|^13.0