PHPackages                             khill/fontawesomephp - 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. khill/fontawesomephp

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

khill/fontawesomephp
====================

PHP wrapper library for the fantastic Font Awesome icon set.

2.0(7y ago)4676.3k↓41.7%14[1 issues](https://github.com/kevinkhill/FontAwesomePHP/issues)4MITPHP

Since May 30Pushed 7y ago4 watchersCompare

[ Source](https://github.com/kevinkhill/FontAwesomePHP)[ Packagist](https://packagist.org/packages/khill/fontawesomephp)[ RSS](/packages/khill-fontawesomephp/feed)WikiDiscussions 2.0 Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (18)Used By (4)

FontAwesome 5 for PHP
=====================

[](#fontawesome-5-for-php)

[![Total Downloads](https://camo.githubusercontent.com/144f12388be5822f50f54cdd9cfbfebfc79829bbcb74a1cfc007e78ded63fb9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b68696c6c2f466f6e74417765736f6d655048502e7376673f7374796c653d706c6173746963)](https://packagist.org/packages/khill/FontAwesomePHP)[![License](https://camo.githubusercontent.com/8eb32196b1ff6ef58ac4bd7714f6fef76293164c643b032d47f9366fc9bca4fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b68696c6c2f466f6e74417765736f6d655048502e7376673f7374796c653d706c6173746963)](http://opensource.org/licenses/MIT)[![Minimum PHP Version](https://camo.githubusercontent.com/6b223721f6fed47957a7e9af6914307645af6c5c1d22ab909977ec494bf0a536/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e332d3838393242462e7376673f7374796c653d706c6173746963)](https://php.net/)

[![Current Release](https://camo.githubusercontent.com/71d8741c384260b8407992de407433022463f1b4fc17b00f8ede015d7bf6acb6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6b6576696e6b68696c6c2f466f6e74417765736f6d655048502e7376673f7374796c653d706c6173746963)](https://github.com/kevinkhill/FontAwesomePHP/releases)[![Build Status](https://camo.githubusercontent.com/086a4825b031187e2309ea62f7f03fc797ef2f0dd9629f9a945c80920828c224/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b6576696e6b68696c6c2f466f6e74417765736f6d655048502f322e302e7376673f7374796c653d706c6173746963)](https://travis-ci.org/kevinkhill/FontAwesomePHP)[![Coverage Status](https://camo.githubusercontent.com/584591062ddd73fb9719d02d00d8f892fb28f8e44c9f078891487e6efdbe3af4/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6b6576696e6b68696c6c2f466f6e74417765736f6d655048502f322e302e7376673f7374796c653d706c6173746963)](https://coveralls.io/r/kevinkhill/FontAwesomePHP?branch=2.0)

A composer ready package designed to integrate the fantastic Font Awesome icon set into your PHP projects through an easy to use interface.

Created with Laravel in mind, a ServiceProvider and Facade have been included as well. Don't worry though, the library will work in any PHP application, via composer or manually.

> If you would like to use FontAwesome 4 then use the `1.1` branch

Install
=======

[](#install)

First, add the package to your main composer.json file:

```
"khill/fontawesomephp" : "2.0.*"
```

Next, run composer from the command line to download and install:

```
$ composer update
```

If you are using Laravel, add the ServiceProvider to the service providers array

```
'Khill\FontAwesome\Laravel\FontAwesomeServiceProvider'
```

Last, add the link in your view's page header to the FontAwesome CSS or JS file, provided by the FontAwesome CDN:

```
FontAwesome::css() // Or FA::css() if you want to use the alias
```

```
FontAwesome::js() // Or FA::js() if you want to use the alias
```

If you have a FontAwesome Pro license, add `true` to the CDN methods to request the Pro assets (make sure you've [whitelisted your domains](https://fontawesome.com/account/services) first):

```
FontAwesome::js(true) // Or FA::js(true) if you want to use the alias
```

Examples and Api
================

[](#examples-and-api)

Please visit [FontAwesomePHP](http://kevinkhill.github.io/FontAwesomePHP) for a complete list of features, examples and the api.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 86.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 ~119 days

Recently: every ~189 days

Total

16

Last Release

2582d ago

Major Versions

1.1.5 → 2.02018-06-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f5001ed1fd24b718ba4ac61e00c76d8ed0408ec0ed428dfa79c6ff217ac02df?d=identicon)[kevinkhill](/maintainers/kevinkhill)

---

Top Contributors

[![kevinkhill](https://avatars.githubusercontent.com/u/266076?v=4)](https://github.com/kevinkhill "kevinkhill (108 commits)")[![dafyd](https://avatars.githubusercontent.com/u/301993?v=4)](https://github.com/dafyd "dafyd (10 commits)")[![BadChoice](https://avatars.githubusercontent.com/u/93900?v=4)](https://github.com/BadChoice "BadChoice (4 commits)")[![danielfewbytes](https://avatars.githubusercontent.com/u/6108870?v=4)](https://github.com/danielfewbytes "danielfewbytes (2 commits)")[![drbyte](https://avatars.githubusercontent.com/u/404472?v=4)](https://github.com/drbyte "drbyte (1 commits)")

---

Tags

composerfontawesomelaravelphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/khill-fontawesomephp/health.svg)

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

PHPackages © 2026

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