PHPackages                             digbang/font-awesome - 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. digbang/font-awesome

Abandoned → [digbang/fonts](/?search=digbang%2Ffonts)Library[Utility &amp; Helpers](/categories/utility)

digbang/font-awesome
====================

Helper class to build FontAwesome icons

2.2.0(9y ago)024.4k1PHP

Since May 28Pushed 9y ago21 watchersCompare

[ Source](https://github.com/digbang/font-awesome)[ Packagist](https://packagist.org/packages/digbang/font-awesome)[ RSS](/packages/digbang-font-awesome/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (7)Used By (0)

Digbang/FontAwesome
===================

[](#digbangfontawesome)

[![Fake build status](https://camo.githubusercontent.com/434ea28f17efbf76dc28369fb3fdcf7419ee3a78ee8e1983b853538f83aa4766/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d677265656e2e737667)](https://camo.githubusercontent.com/434ea28f17efbf76dc28369fb3fdcf7419ee3a78ee8e1983b853538f83aa4766/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d677265656e2e737667)

Helper class to create FontAwesome icons with a predefined markup.

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

[](#installation)

Download through composer:

```
composer require digbang/font-awesome

```

Add the service provider and facade to your `config/app.php`:

```
'providers' => [
    // ...
    Digbang\FontAwesome\FontAwesomeServiceProvider::class,

],

'aliases' => [
    // ...
    'FontAwesome' => Digbang\FontAwesome\Facade::class,
],
```

Usage
-----

[](#usage)

### Through the facade

[](#through-the-facade)

```
FontAwesome::icon('icon', 'extra-class') //
// or...
FontAwesome::icon('icon', ['class' => 'extra-class']) //
```

### Through the helper function

[](#through-the-helper-function)

```
fa('icon', 'extra-class') //
// or...
fa('icon', ['class' => 'extra-class']) //
```

### HTML Attributes

[](#html-attributes)

You can also add any other attributes to the html. Doing...

```
fa('times', ['title' => 'Delete this!']) //
```

### Changing the tag

[](#changing-the-tag)

You can change the tag used by the library. Doing...

```
FontAwesome::setTag('span');

fa('edit'); //
```

### Standalone usage

[](#standalone-usage)

Non-Laravel projects can still use this, but the Facade and helper function won't be available.

```
$fa = new Digbang\FontAwesome\FontAwesome;
$fa->setTag('span');
$fa->icon('times', 'text-danger'); //
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~224 days

Total

5

Last Release

3476d ago

Major Versions

1.0.1 → 2.0.02015-08-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/34c0365f697eb3491eb619d8cad1f38bc68c7b7140842a7492c6a9d8753a07d5?d=identicon)[guiwoda](/maintainers/guiwoda)

![](https://www.gravatar.com/avatar/815bc7d874ad7abe1cbc64eb03ac8931f16f9a5f0795d6d73399d0d7003afb5f?d=identicon)[demiansc](/maintainers/demiansc)

---

Top Contributors

[![guiwoda](https://avatars.githubusercontent.com/u/1625545?v=4)](https://github.com/guiwoda "guiwoda (1 commits)")

### Embed Badge

![Health badge](/badges/digbang-font-awesome/health.svg)

```
[![Health](https://phpackages.com/badges/digbang-font-awesome/health.svg)](https://phpackages.com/packages/digbang-font-awesome)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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