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

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

yidas/yii2-fontawesome
======================

Font Awesome Asset Bundle for Yii2 framework

5.0.0(6y ago)751.3k↓42.5%18MITPHPPHP &gt;=5.4.0

Since Sep 9Pushed 10mo ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (8)

 [ ![](https://camo.githubusercontent.com/cd234068c8011878c80bdb163ceb3d7a43c891c2a9851997962d44075599b26a/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f382f38392f466f6e745f417765736f6d655f355f6c6f676f5f626c61636b2e7376672f32323070782d466f6e745f417765736f6d655f355f6c6f676f5f626c61636b2e7376672e706e67) ](http://fontawesome.io/)

Font Awesome Extension for Yii 2
=================================

[](#font-awesome-extension-for-yii-2-)

Font Awesome Asset Bundle for Yii2 framework

[![Latest Stable Version](https://camo.githubusercontent.com/ff2b1651588894e8bf372742c10d9dcc7c866de529517f80aaf51fd1e0ca2f4d/68747470733a2f2f706f7365722e707567782e6f72672f79696461732f796969322d666f6e74617765736f6d652f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/yidas/yii2-fontawesome)[![License](https://camo.githubusercontent.com/da5c9a31ef9174c8f972a26d80fdd4e7b934579ea631a450ce3b19ea8aaa0b1e/68747470733a2f2f706f7365722e707567782e6f72672f79696461732f796969322d666f6e74617765736f6d652f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/yidas/yii2-fontawesome)[![Total Downloads](https://camo.githubusercontent.com/2d3d0f627afa7d8077bfa52c7f830e61facb6600d4e14d9e9cf5569dd1d1fa6f/68747470733a2f2f706f7365722e707567782e6f72672f79696461732f796969322d666f6e74617765736f6d652f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/yidas/yii2-fontawesome)[![Monthly Downloads](https://camo.githubusercontent.com/d650d17bb6c28afd82bac852a02773df51887752e1194c8c738526ab7e13eb96/68747470733a2f2f706f7365722e707567782e6f72672f79696461732f796969322d666f6e74617765736f6d652f642f6d6f6e74686c793f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/yidas/yii2-fontawesome)

This is the [Font Awesome](http://fontawesome.io/) extension for [Yii framework 2.0](http://www.yiiframework.com/). It encapsulates [Font Awesome](https://github.com/FortAwesome/Font-Awesome) distribution assets and thus makes using Font Awesome in Yii applications extremely easy.

---

INSTALLATION
------------

[](#installation)

The preferred install way is through [Composer](http://getcomposer.org/download/):

```
composer require yidas/yii2-fontawesome

```

Or you could edit `composer.json` with adding package in require section then run `composer update`.

```
"yidas/yii2-fontawesome": ">=5.0.0"

```

---

CONFIGURATION
-------------

[](#configuration)

Register or depend Asset into your application:

```
yidas\yii\fontawesome\FontawesomeAsset
```

For example, to register Font Awesome assets in view :

```
\yidas\yii\fontawesome\FontawesomeAsset::register($this);
```

Or as dependency in your app asset bundle :

```
namespace app\assets;
use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/site.css',
    ];
    public $js = [
    ];
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
        'yidas\yii\fontawesome\FontawesomeAsset',
    ];
}
```

### CDN Asset Mode

[](#cdn-asset-mode)

You could switch Asset to use CDN distribution by configuring `config` file:

```
'components' => [
    'assetManager' => [
        'bundles' => [
            'yidas\yii\fontawesome\FontawesomeAsset' => [
                'cdn' => true,
                // 'cdnVersion' => '5.11.0',
            ],
        ],
    ],
],
```

#### Specify a CDN source

[](#specify-a-cdn-source)

You could also specify CDN source you like:

```
'assetManager' => [
    'bundles' => [
        'yidas\yii\fontawesome\FontawesomeAsset' => [
            'cdn' => true,
            'cdnCSS' => ['//maxcdn.bootstrapcdn.com/font-awesome/5.11.0/css/font-awesome.min.css'],
        ],
    ],
],
```

---

USAGE
-----

[](#usage)

### Version Control

[](#version-control)

#### Update dependent packages

[](#update-dependent-packages)

```
composer update yidas/yii2-fontawesome

```

#### Update newest Font-Awesome version

[](#update-newest-font-awesome-version)

```
composer update fortawesome/font-awesome

```

#### Specify a Font-Awesome version

[](#specify-a-font-awesome-version)

```
composer require fortawesome/font-awesome 5.11.0

```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 85% 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 ~378 days

Total

3

Last Release

2417d ago

Major Versions

2.0.0 → 4.0.02018-10-09

4.0.0 → 5.0.02019-10-05

### Community

Maintainers

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

---

Top Contributors

[![yidas](https://avatars.githubusercontent.com/u/12604195?v=4)](https://github.com/yidas "yidas (17 commits)")[![KawazoeyShigi](https://avatars.githubusercontent.com/u/169302299?v=4)](https://github.com/KawazoeyShigi "KawazoeyShigi (2 commits)")[![DBX12](https://avatars.githubusercontent.com/u/6484542?v=4)](https://github.com/DBX12 "DBX12 (1 commits)")

---

Tags

cdn-sourcefontawesomeyii2yii2-assetyiiassetfont-awesomeasset bundle

### Embed Badge

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

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

###  Alternatives

[rmrevin/yii2-fontawesome

Asset Bundle for Yii2 with Font Awesome

1474.0M134](/packages/rmrevin-yii2-fontawesome)[nizsheanez/yii2-asset-converter

Less, Sass, Scss and Phamlp converter for Yii2. No system requires. yii2-composer support, Less autoupdate, customizing of output directory

64167.5k6](/packages/nizsheanez-yii2-asset-converter)

PHPackages © 2026

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