PHPackages                             fortifi/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. fortifi/fontawesome

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

fortifi/fontawesome
===================

Fontawesome icon creation helper

3.4.0(6y ago)032.1k↓33.3%1MITPHPPHP &gt;=5.6CI failing

Since Sep 18Pushed 5y ago6 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (14)Used By (1)

Font Awesome 5 Icon Wrapper
===========================

[](#font-awesome-5-icon-wrapper)

A PHP wrapper for easy Font Awesome 5 icon creation

Example
-------

[](#example)

#### Create Icon:

[](#create-icon)

By default, `FaIcon` class gives access to all FontAwesome Pro icons.

```
$icon = FaIcon::create(FaIcon::COMMENT_SMILE);
```

#### For Free icons:

[](#for-free-icons)

There is a helper class for accessing only free icons, using:

```
$icon = FaIcon::create(FaFreeIcons::ROCKET);
```

#### Create Brand Icon:

[](#create-brand-icon)

Whilst `FaIcon::create();` will work for creating Brand icons, the below class static is for improved code readability of developer intent.

```
$brandIcon = FaBrandIcon::create(FaBrandIcon::GOOGLE);
```

#### Size options:

[](#size-options)

```
$icon->sizeLarge();
$icon->sizeSmall();
$icon->sizeXSmall();

$icon->sizeX1();
$icon->sizeX2();
$icon->sizeX3();
$icon->sizeX4();
$icon->sizeX5();
$icon->sizeX6();
$icon->sizeX7();
$icon->sizeX8();
$icon->sizeX9();
$icon->sizeX10();
```

#### Style options (pro only):

[](#style-options-pro-only)

```
$icon->styleRegular();
$icon->styleLight();
$icon->styleSolid();
```

#### Transformation options:

[](#transformation-options)

##### Flip:

[](#flip)

```
$icon->flip(FaFlip::VERTICAL);
$icon->flip(FaFlip::HORIZONTAL);
```

Multiple flips:

```
$icon->flip(FaFlip::VERTICAL, FaFlip::HORIZONTAL);
```

##### Shrink / Grow:

[](#shrink--grow)

```
$icon->shrink(10);
$icon->grow(10);
```

#### Move:

[](#move)

```
$icon->moveUp(10);
$icon->moveDown(10);
$icon->moveLeft(10);
$icon->moveRight(10);
```

#### Mask:

[](#mask)

```
$icon->mask(FaIcon::PENCIL_ALT, FaStyle::SOLID);
```

#### Animation options:

[](#animation-options)

```
$icon->spin();
$icon->pulse();
```

#### Set tag as span (more semantic than default `` tag):

[](#set-tag-as-span-more-semantic-than-default-i-tag)

```
$icon->span();
```

#### Other options:

[](#other-options)

```
$icon->fixedWidth();
```

```
$icon->border();
```

```
$icon->pullLeft();
$icon->pullRight();
```

### Additional:

[](#additional)

Icon object is created using [Glimpse](https://github.com/packaged/glimpse).

Add/remove classes:

```
$icon->addClass('someClass', 'anotherClass');
$icon->removeClass('remveThis', 'andThis');
```

Get Icon Glimpse object and apply custom attributes:

```
$icon->glimpse()->setId('uniqueId');
$icon->glimpse()->setAttribute('data-whatever', 'someValue');
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 82.4% 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 ~34 days

Recently: every ~70 days

Total

13

Last Release

2376d ago

### Community

Maintainers

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

---

Top Contributors

[![bajb](https://avatars.githubusercontent.com/u/2241334?v=4)](https://github.com/bajb "bajb (14 commits)")[![TomK](https://avatars.githubusercontent.com/u/299656?v=4)](https://github.com/TomK "TomK (2 commits)")[![Jleagle](https://avatars.githubusercontent.com/u/381099?v=4)](https://github.com/Jleagle "Jleagle (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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