PHPackages                             pendonl/laravel-fontawesome - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pendonl/laravel-fontawesome

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pendonl/laravel-fontawesome
===========================

Laravel helper for FontAwesome icons

1.0.5(8y ago)96.8k↑66.7%51MITPHPPHP &gt;=5.6.0

Since Nov 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/PendoNL/laravel-fontawesome)[ Packagist](https://packagist.org/packages/pendonl/laravel-fontawesome)[ RSS](/packages/pendonl-laravel-fontawesome/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (1)

FontAwesome helper and blade directive for Laravel
==================================================

[](#fontawesome-helper-and-blade-directive-for-laravel)

[![Latest version on Packagist](https://camo.githubusercontent.com/03488440d93fc4e4edeacffd486e4f493e96008af707c64b17fb6c65db28f548/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70656e646f6e6c2f6c61726176656c2d666f6e74617765736f6d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pendonl/laravel-fontawesome)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Travis branch](https://camo.githubusercontent.com/61f12dccee7bc4c2d34e0fb1aeef4f1cc8cb540a74c422bfbeb99fa3eb60ede7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f50656e646f4e4c2f6c61726176656c2d666f6e74617765736f6d652f6d61737465722e737667)](https://travis-ci.org/PendoNL/laravel-fontawesome)[![Scrutinizer](https://camo.githubusercontent.com/52137817cb8df0a77b7e16fb1ce7dc75a5493fe12ec4d0adde021c696fa279d5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f50656e646f4e4c2f6c61726176656c2d666f6e74617765736f6d652e737667)](https://scrutinizer-ci.com/g/PendoNL/laravel-fontawesome/)[![SensioLabs Insight](https://camo.githubusercontent.com/2e51263d9cbb6a99f92d4ad377b3324f1e99dae90cbc8b731a258c566804d583/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f65363630633536302d396435302d343365332d396265312d6535353662613738663138392e737667)](https://insight.sensiolabs.com/projects/e660c560-9d50-43e3-9be1-e556ba78f189)[![Style Ci](https://camo.githubusercontent.com/4ab958216c0e9db78c25242024f49b8287a5b53f27616af45ff9f7961eecb951/68747470733a2f2f7374796c6563692e696f2f7265706f732f37333330303630312f736869656c64)](https://styleci.io/repos/73300601/)[![Total Downloads](https://camo.githubusercontent.com/6ec87b428ab4c7542c4299ef989286359b913f0475ee350bfad043ecb03c9d64/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70656e646f6e6c2f6c61726176656c2d666f6e74617765736f6d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pendonl/laravel-fontawesome)

The `PendoNL/laravel-fontawesome` package provides an easy way to include FontAwesome icons in your code, there's even a Blade directive to use them inside your blade templates.

Usage
-----

[](#usage)

Make sure you've loaded FontAwesome's CSS on your page! This package only providers little helpers to generate icons!

You can use the Facade to generate icons from within your code:

```
FontAwesome::icon('arrow-up');
// Generates
```

It's also possible to add optional attributes for the icon:

```
FontAwesome::icon('arrow-up', ['class' => 'tiny', 'id' => 'MyFirstIcon']);
// Generates
```

If you aren't using the Facade, this is the way to generate an icon:

```
use PendoNL\LaravelFontAwesome\LaravelFontAwesome;

$fa = new LaravelFontAwesome();
$icon = $fa->icon('arrow-up', ['class' => 'tiny', 'id' => 'MyFirstIcon']);
```

And last, but not least, you there'a a blade directive to use inside your blade templates:

```
@fa('arrow-up');
@fa('arrow-up', ['class' => 'tiny', 'id' => 'MyFirstIcon']);

```

Using the Facade from within your templates work as well:

```
{!! FontAwesome::icon('building') !!}
{!! FontAwesome::icon('building', ['id' => 'building-icon']) !}}

```

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require pendonl/laravel-fontawesome
```

Next, you must install the service provider (For L5.5 and up Auto-Discovery is enabled):

```
// config/app.php
'providers' => [
    ...
    PendoNL\LaravelFontAwesome\LaravelFontAwesomeServiceProvider::class,
];
```

Optionally, register the facade:

```
// config/app.php
'aliases' => [
    ...
    'FontAwesome' => PendoNL\LaravelFontAwesome\Facade::class,
];
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

It was incredible helpfull to view various packages of Spatie to get to this final version. Aswel as `lucasruroken/laravel-font-awesome` which I spotted and was the main reason to start creating my first package ever. Thanks both for open sourcing your packages! I also tried to write down this first experience on my companies blog, comments appreciated!

- [Spatie](https://github.com/spatie)
- [LucasRuroken/laravel-font-awesome](https://github.com/lucasruroken/laravel-font-awesome)
- [Blog about my first open-source experience](https://pendo.nl/blog/webdevelopment/fontawesome-for-laravel)

About Pendo
-----------

[](#about-pendo)

Pendo is a webdevelopment agency based in Maastricht, Netherlands. If you'd like, you can [visit our website](https://pendo.nl).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~95 days

Recently: every ~119 days

Total

6

Last Release

2994d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e88bd30f3c99bb1e2103b435c0548776677d19f23f40b8826a469a6be713a556?d=identicon)[Pendo](/maintainers/Pendo)

---

Top Contributors

[![joshuadegier](https://avatars.githubusercontent.com/u/2580917?v=4)](https://github.com/joshuadegier "joshuadegier (33 commits)")[![goszowski](https://avatars.githubusercontent.com/u/10208931?v=4)](https://github.com/goszowski "goszowski (4 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (1 commits)")[![stijnvanouplines](https://avatars.githubusercontent.com/u/16742744?v=4)](https://github.com/stijnvanouplines "stijnvanouplines (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pendonl-laravel-fontawesome/health.svg)

```
[![Health](https://phpackages.com/badges/pendonl-laravel-fontawesome/health.svg)](https://phpackages.com/packages/pendonl-laravel-fontawesome)
```

###  Alternatives

[stevegrunwell/wp-admin-tabbed-settings-pages

A polyfill for Trac #51086, bringing tabbed settings pages into WP-Admin.

1446.2k](/packages/stevegrunwell-wp-admin-tabbed-settings-pages)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
