PHPackages                             yiirocks/svg-inline-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. yiirocks/svg-inline-fontawesome

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

yiirocks/svg-inline-fontawesome
===============================

Inline Font Awesome Icons for Yii

2.0.1(1mo ago)06311MITPHPPHP &gt;=8.2CI passing

Since Mar 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/YiiRocks/svg-inline-fontawesome)[ Packagist](https://packagist.org/packages/yiirocks/svg-inline-fontawesome)[ Docs](https://www.yii.rocks/svg-inline-fontawesome/)[ RSS](/packages/yiirocks-svg-inline-fontawesome/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (30)Versions (6)Used By (1)

Inline Font Awesome for Yii
===========================

[](#inline-font-awesome-for-yii)

> **inline**
> ***/ˈɪnlʌɪn/***
> *adjective*
>
> included as part of the main text on a page, rather than in a separate section

This extension provides simple functions for [Yii framework 3.0](http://www.yiiframework.com/) applications to add [Font Awesome](https://fontawesome.com/) [Icons](https://fontawesome.com/icons) inline.

[![Packagist Version](https://camo.githubusercontent.com/cea02667e4db23f876557e3e86f3e2df8135277bb363fb392b42a1487697e3a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796969726f636b732f7376672d696e6c696e652d666f6e74617765736f6d652e737667)](https://packagist.org/packages/yiirocks/svg-inline-fontawesome)[![PHP from Packagist](https://camo.githubusercontent.com/7396885432f58c35df9a39ae70caed38ef3fbb45e8b49998d7b5a4d75f908be7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f796969726f636b732f7376672d696e6c696e652d666f6e74617765736f6d652e737667)](https://php.net/)[![Packagist](https://camo.githubusercontent.com/cca22863183ffd7c21f45a0d72edd5dc7c537209dafe7d24069831d15a84f67d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796969726f636b732f7376672d696e6c696e652d666f6e74617765736f6d652e737667)](https://packagist.org/packages/yiirocks/svg-inline-fontawesome)[![GitHub](https://camo.githubusercontent.com/a68d7bd1a7eba339b208a4abd91474f6274ccf4633dcf2bd4af992b3043f402e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f796969726f636b732f7376672d696e6c696e652d666f6e74617765736f6d652e737667)](https://github.com/yiirocks/svg-inline-fontawesome/blob/master/LICENSE)

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

[](#installation)

The package could be installed via composer:

```
composer require yiirocks/svg-inline-fontawesome
```

Usage
-----

[](#usage)

The default configuration will enable `$svg` in any view.

```
echo $svg->fai('cookie');
```

Available options can be found in the [documentation](https://www.yii.rocks/svg-inline/fontawesome/).

Unit testing
------------

[](#unit-testing)

The package is tested with [Psalm](https://psalm.dev/) and [PHPUnit](https://phpunit.de/). To run tests:

```
composer psalm
composer phpunit
```

[![Maintainability](https://camo.githubusercontent.com/fffe66dd77469868e4fd7ac5fc0fecf3bc26fb22f077bc18c06351ea25618f70/68747470733a2f2f716c74792e73682f6261646765732f61313131363230362d653563612d343938642d386362622d3862613862346365393139312f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/YiiRocks/projects/svg-inline-fontawesome)[![Codacy branch grade](https://camo.githubusercontent.com/124d1fc8fb76602db16407808eea0259971cbaebab9e321bd9be82cbd9723c05/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f34316330666339653165323434643132393266376261353162366564313036352f6d61737465722e737667)](https://app.codacy.com/gh/YiiRocks/svg-inline-fontawesome)[![GitHub Workflow Status](https://camo.githubusercontent.com/942256c07e96ce1ca3577fef26a0c53e6574dac8d33d5e3fb3606dae77d8e07d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f596969526f636b732f7376672d696e6c696e652d666f6e74617765736f6d652f706870756e69742e796d6c3f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/942256c07e96ce1ca3577fef26a0c53e6574dac8d33d5e3fb3606dae77d8e07d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f596969526f636b732f7376672d696e6c696e652d666f6e74617765736f6d652f706870756e69742e796d6c3f6272616e63683d6d6173746572)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance89

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.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 ~93 days

Total

5

Last Release

53d ago

Major Versions

1.0.2 → 2.0.02025-07-23

PHP version history (2 changes)1.0.0PHP &gt;=8.1

2.0.1PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1957a3dc890165f142079565dc6b0ef59c26838a36fba5f052985e34612ce269?d=identicon)[mr42](/maintainers/mr42)

---

Top Contributors

[![Mister-42](https://avatars.githubusercontent.com/u/68641750?v=4)](https://github.com/Mister-42 "Mister-42 (54 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")

---

Tags

extensionfontawesomefontawesome-iconsiconiconsinlinesvgyiiyii3yii3-extensionsiconssvgextensionyiiiconfont-awesomeinlineyii3

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-icons

Set of icon frameworks for use in Yii Framework 2.0

73970.3k34](/packages/kartik-v-yii2-icons)[fortawesome/wordpress-fontawesome

Official Font Awesome WordPress plugin composer package.

662.1k](/packages/fortawesome-wordpress-fontawesome)

PHPackages © 2026

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