PHPackages                             toneflix-code/fontawsome5-php - 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. toneflix-code/fontawsome5-php

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

toneflix-code/fontawsome5-php
=============================

Allows you to use fontawsome 5 icons in your php project.

v1.0.3(4y ago)05MITPHP

Since May 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/toneflix/font-awesome5-php)[ Packagist](https://packagist.org/packages/toneflix-code/fontawsome5-php)[ Docs](https://github.com/toneflix/fontawsome5-php)[ RSS](/packages/toneflix-code-fontawsome5-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

font-awesome5-php
=================

[](#font-awesome5-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bfa2236bc5096846777b0b7bbd609cb064aa063915b8f492361ca90e4dd0d7c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f6e65666c69782d636f64652f666f6e746177736f6d65352d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/toneflix-code/fontawsome5-php)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/7a2ae945314f1b06c4fb097f7815bee251c131eedfe09ecf9af41eb9dd703c27/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f6e65666c69782d636f64652f666f6e746177736f6d65352d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/toneflix-code/fontawsome5-php)

A PHP wrapper around [Font Awesome 5](https://fontawesome.com/) that allows you to call and use fontawesome 5 icons in your php project.

Requirements
------------

[](#requirements)

- PHP 5.4.0 or later
- Font Awesome 5.15.3 or later

Install
-------

[](#install)

### Via Composer

[](#via-composer)

```
    $ composer require toneflix-code/fontawsome5-php
```

### Via download

[](#via-download)

Download a release version from the [releases page](https://github.com/3m1n3nc3/font-awesome5-php/releases). Extract, then:

```
    require 'path/to/src/autoload.php';
```

Usage
-----

[](#usage)

### 0. First Things

[](#0-first-things)

This library does not provide Font Awesome so make sure you fulfill that dependency Depending on what FontAwesome you own, **`LICENSE`** may need to be set to any of **`[free, pro, all]`** and also **`$icon_type`** may need to be set to any of **`[brands, duotone, light, regular, solid, all]`**

### 1. Initialize

[](#1-initialize)

Initialize by calling to the `FontAwesome()` Class

```
    $font_awesome = new \ToneflixCode\FontAwesome(LICENSE);
```

### 2. Icons Array

[](#2-icons-array)

To get an array of all icons available to your provided params:

```
    $icon_type = "solid";   //The type of icons you are requesting for
    $icons     = $font_awesome->icons($icon_type);
    print_r($icons);
```

### 3. Html Select

[](#3-html-select)

The library can help you generate a html select with icons set as options and example of what to expect would be:

```

        500px

```

Implementation can easily be done

```
    $icon_type = "solid";           //The type of icons you are requesting for
    $selected  = 'fas fa-fa-500px'; //The currently selected icon
    $class     = "form-control";    //The class to be added to select html element
    $titles    = true;              //Setting this to true will apply a ucwords() function
                                    //and remove all [-] to an icon then make it a title

    $icons     = $font_awesome->selector($selected, $class, $titles, $icon_type);
    echo $icons;
```

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~114 days

Total

3

Last Release

1598d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4638f9de973d94753ebff641af3009e1049064f9a6bd76fe87e58d0d8ddd7ca7?d=identicon)[3m1n3nc3](/maintainers/3m1n3nc3)

---

Top Contributors

[![3m1n3nc3](https://avatars.githubusercontent.com/u/52163001?v=4)](https://github.com/3m1n3nc3 "3m1n3nc3 (2 commits)")

---

Tags

iconstoneflix-codetoneflixfontawsome5fontawsome5-php

### Embed Badge

![Health badge](/badges/toneflix-code-fontawsome5-php/health.svg)

```
[![Health](https://phpackages.com/badges/toneflix-code-fontawsome5-php/health.svg)](https://phpackages.com/packages/toneflix-code-fontawsome5-php)
```

###  Alternatives

[twbs/bootstrap-icons

Official open source SVG icon library for Bootstrap

7.9k2.0M56](/packages/twbs-bootstrap-icons)[simple-icons/simple-icons

SVG icons for popular brands

24.8k194.2k4](/packages/simple-icons-simple-icons)[driftyco/ionicons

The premium icon font for Ionic Framework.

18.0k87.8k8](/packages/driftyco-ionicons)[mervick/material-design-icons

Google Material Design Icons For Using With Bootstrap

10191.4k7](/packages/mervick-material-design-icons)[codewithdennis/filament-lucide-icons

A Filament plugin that integrates Lucide icons, allowing you to use them seamlessly across Filament forms, tables, actions, and more.

4529.4k2](/packages/codewithdennis-filament-lucide-icons)[quellenform/t3x-iconpack

Provides an iconpack-registry for custom iconpacks.

1542.7k25](/packages/quellenform-t3x-iconpack)

PHPackages © 2026

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