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.3(1w ago)08541BSD-3-ClausePHPPHP &gt;=8.3CI 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/)[ GitHub Sponsors](https://github.com/sponsors/YiiRocks)[ RSS](/packages/yiirocks-svg-inline-fontawesome/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (60)Versions (9)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)[![GitHub Workflow Status](https://camo.githubusercontent.com/88f46dce5d734d6b4db1a33ac8f50aa1394424423a5d801bea3f34f9e5a8a3fd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f796969726f636b732f7376672d696e6c696e652d666f6e74617765736f6d652f6275696c642e796d6c3f6272616e63683d6d6173746572)](https://github.com/yiirocks/svg-inline-fontawesome/actions)

Stats for Nerds

[![Coverage](https://camo.githubusercontent.com/eea3d24d83a2622ca33eb4b7e698d552342d05aa097c6e9e11cd369e7f899254/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532467261772e67697468756275736572636f6e74656e742e636f6d253246796969726f636b732532467376672d696e6c696e652d666f6e74617765736f6d65253246626164676573253246636f7665726167652e6a736f6e)](https://github.com/yiirocks/svg-inline-fontawesome/tree/badges)[![MSI](https://camo.githubusercontent.com/d4981603c8a5a01316b4feb751eb7c6e3987b6f73327e2a0d05ec7494aecfcc1/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532467261772e67697468756275736572636f6e74656e742e636f6d253246796969726f636b732532467376672d696e6c696e652d666f6e74617765736f6d652532466261646765732532466d73692e6a736f6e)](https://github.com/yiirocks/svg-inline-fontawesome/tree/badges)[![Tests](https://camo.githubusercontent.com/b0327f1ca105bdfa6113072af944364587fd4abb7ea3d8943e6a0d4e29031827/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532467261772e67697468756275736572636f6e74656e742e636f6d253246796969726f636b732532467376672d696e6c696e652d666f6e74617765736f6d6525324662616467657325324674657374732e6a736f6e)](https://github.com/yiirocks/svg-inline-fontawesome/tree/badges)[![Assertions](https://camo.githubusercontent.com/f1278d389c617e25f1232a0dc2c03ed34eee562d701491e68655d74caa74bcf1/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532467261772e67697468756275736572636f6e74656e742e636f6d253246796969726f636b732532467376672d696e6c696e652d666f6e74617765736f6d65253246626164676573253246617373657274696f6e732e6a736f6e)](https://github.com/yiirocks/svg-inline-fontawesome/tree/badges)

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/), [PHPUnit](https://phpunit.de/), and [Infection](https://infection.github.io/) for mutation testing. To run tests:

```
composer psalm
composer phpunit
composer infection
```

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance95

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

Recently: every ~103 days

Total

7

Last Release

11d ago

Major Versions

1.0.2 → 2.0.02025-07-23

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

2.0.1PHP &gt;=8.2

2.0.2PHP &gt;=8.3

### 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 (64 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

731.1M34](/packages/kartik-v-yii2-icons)[fortawesome/wordpress-fontawesome

Official Font Awesome WordPress plugin composer package.

682.2k](/packages/fortawesome-wordpress-fontawesome)[yiisoft/app

Yii3 web application template

37615.1k1](/packages/yiisoft-app)

PHPackages © 2026

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