Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Font Awesome

Font Awesome Laravel Package

aerni/font-awesome

A Laravel package for using Font Awesome icons in your views. Render icons with simple Blade components or helpers, choose from Font Awesome’s icon sets, and keep your markup clean while adding scalable vector icons to your UI.

View on GitHub
Deep Wiki
Context7

aerni/font-awesome brings Font Awesome icons to Laravel as clean, expressive Blade components. Instead of copying SVG markup or juggling CSS classes, you can render any icon with a single tag—<x-fa::icon name="user" />—and style it using familiar HTML attributes.

The package reads icon definitions directly from the Font Awesome package, so Free and Pro sets both work out of the box. Icons are rendered as inline SVG, making them easy to color, size, and animate with CSS, while smart defaults keep output minimal. Cached icon lookups keep rendering fast even on icon-heavy pages.

  • Renders icons via simple Blade components and a fa() helper
  • Supports Font Awesome Free and Pro icon sets
  • Outputs inline SVG for full CSS styling control
  • Built-in caching for fast, repeatable lookups
  • Chainable attributes for size, color, and accessibility
Frequently asked questions about Font Awesome
Can I use aerni/font-awesome in a Laravel app without Statamic?
No. aerni/font-awesome is a Statamic addon, so it only makes sense in an application that already runs Statamic on top of Laravel. In a Laravel-only app, the addon adds a CMS dependency for a problem that a simple enum, config select, or small Blade component already solves.
Which Statamic, Laravel, and PHP versions does aerni/font-awesome support?
The supported matrix is defined by the addon's composer.json constraints, not by your host application's constraints. Statamic addons are tightly coupled to core majors, so check the resolved statamic/cms version and the PHP and Laravel requirements before adopting. Pin the addon to a Statamic major and treat upgrades as deliberate, tested events.
How do I install aerni/font-awesome?
Install it with Composer using composer require aerni/font-awesome. Statamic addons are typically auto-discovered via the addon manifest, and you may have an optional config file to publish. Then add the Font Awesome fieldtype to the relevant blueprint or fieldset and render its output in Antlers or Blade.
Does aerni/font-awesome support Font Awesome Pro?
Yes. The package is described as supporting both Font Awesome Free and Pro. Pro icons require a paid Font Awesome license and usually a hosted kit or licensed assets, so confirm how the addon expects those assets to be supplied. Treat Pro usage as a recurring cost and a compliance obligation.
Does the addon bundle Font Awesome assets or rely on a CDN or kit?
That detail is not clear from the overview, so verify it before adoption. Whether assets are bundled, loaded from a CDN, or require a hosted Font Awesome kit affects CSP rules, page weight, offline behavior, and licensing. For production, self-hosting a subset or using a controlled kit is usually preferable to a full CDN CSS payload.
How are icons rendered in Antlers and Blade templates?
The package provides simple components and helpers for Blade views and is intended to drop scalable SVG icons anywhere in your app. For Statamic templates, confirm whether the fieldtype augments to raw icon markup, a tag, or class output. Check that you can override the output so you can control accessibility attributes and markup.
Is aerni/font-awesome actively maintained and tested?
Signals are thin: 5 stars and 0 dependents suggest a single-maintainer addon with a small audience, and the overview does not advertise CI or test coverage. The maintainer is known in the Statamic community, but there is no ecosystem redundancy. Audit the small codebase, add smoke tests, and pin versions before production use.
Can editors choose from custom icon sets or only the built-in Font Awesome icons?
The addon is focused on Font Awesome, so expect the selectable set to be Font Awesome icons rather than arbitrary custom SVG sets. Check the configuration to see whether the available icons or version can be constrained. If you need custom icon libraries, a custom fieldtype or a simpler select field may be a better fit.
How should I handle accessibility and CSP when using Font Awesome icons?
Decide per icon whether it is decorative or meaningful. Decorative icons should be hidden from assistive technology, for example with aria-hidden, while meaningful icons need an accessible label or visible text. If you use a CDN or hosted kit, add the required origins to your Content Security Policy and consider self-hosting a subset to reduce payload.
What happens if I remove aerni/font-awesome later?
Removal is usually straightforward because the fieldtype persists icon names as strings in your content. You can remove the addon and rewrite the Antlers or Blade templates without a data migration, but keep a value-mapping table and keep the old field for one release cycle so you can roll back. This low lock-in is one of the addon's main advantages.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib