Download the PHP package enuenan/font-awesome-blade without Composer
On this page you can find all versions of the php package enuenan/font-awesome-blade. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download enuenan/font-awesome-blade
More information about enuenan/font-awesome-blade
Files in enuenan/font-awesome-blade
Package font-awesome-blade
Short Description This is my package font-awesome-blade
License MIT
Homepage https://github.com/enuenan/font-awesome-blade
Informations about the package font-awesome-blade
Font Awesome Blade Icons for Laravel
A modern, developer-friendly Laravel package that lets you use Font Awesome icons as Blade components with zero boilerplate.
✨ Features
- ✅ Blade component syntax
- ✅ Webfonts mode (classic
<i>rendering) - ✅ SVG mode (inline SVG rendering)
- ✅ Automatic CSS injection
- ✅ Configurable allowed styles
- ✅ Accessibility-friendly by default
- ✅ Optional local SVG download command
📦 Installation
⚙️ Configuration
Publish config:
This creates:
🛠 Configuration Options
🚀 Usage
Basic Icon
Renders:
Styles
If a style is not allowed, it falls back to default_style.
🎛 Modifiers
Spin
Pulse
Fixed Width
Sizes
Rotate
Flip
Animations
🎨 Custom Classes
♿ Accessibility
If no label is provided:
If you provide one:
It renders:
🖼 SVG Mode (Inline Rendering)
You can switch to SVG mode globally:
Or per icon:
SVG mode renders:
instead of <i> tags.
📥 Download SVG Icons
To use SVG mode, you need SVG files stored locally.
Run:
This will download official Font Awesome SVGs from:
https://github.com/FortAwesome/Font-Awesome
By default it downloads:
- brands
- solid
- regular
They are stored at:
Advanced Download Options
Download specific styles:
Force overwrite existing files:
Download a specific branch or tag:
⚡ Automatic CSS Injection
When auto_inject is enabled:
- Required Font Awesome CSS files are automatically injected into
<head> - Only styles listed in
allowed_stylesare loaded - No manual CDN setup needed
Disable it:
🧠 Programmatic Usage
You can generate classes or HTML in PHP:
Useful for:
- Mailables
- Notifications
- Admin panel builders
- API responses
🧪 Testing
Run:
or
The architecture is designed to support gated features cleanly.
📄 License
MIT License © Enuenan
All versions of font-awesome-blade with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^8.0||^9.0||^10.0||^11.0||^12.0