PHPackages                             loveorigami/yii2-icofont - 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. loveorigami/yii2-icofont

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

loveorigami/yii2-icofont
========================

Asset Bundle for Yii2 with IcoFont http://icofont.com

1.3(9y ago)62.7k2MITCSS

Since Aug 30Pushed 8y ago3 watchersCompare

[ Source](https://github.com/loveorigami/yii2-icofont)[ Packagist](https://packagist.org/packages/loveorigami/yii2-icofont)[ RSS](/packages/loveorigami-yii2-icofont/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (4)Used By (0)

Yii 2 [IcoFont](http://icofont.com) Asset Bundle
================================================

[](#yii-2-icofont-asset-bundle)

[![Latest Stable Version](https://camo.githubusercontent.com/3d715459abb151118561243246ec30a8329efe5ba0208f24c837d20612c21aac/68747470733a2f2f706f7365722e707567782e6f72672f6c6f76656f726967616d692f796969322d69636f666f6e742f762f737461626c65)](https://packagist.org/packages/loveorigami/yii2-icofont)[![Total Downloads](https://camo.githubusercontent.com/aa06b10139cfd15f92952be2a490e24839fb2c15e4d71baeb1c19ca52da12e00/68747470733a2f2f706f7365722e707567782e6f72672f6c6f76656f726967616d692f796969322d69636f666f6e742f646f776e6c6f616473)](https://packagist.org/packages/loveorigami/yii2-icofont)[![License](https://camo.githubusercontent.com/c5cd39ee31def360103527f451c0b31c268ec19a0fa10cd80a56352721774f59/68747470733a2f2f706f7365722e707567782e6f72672f6c6f76656f726967616d692f796969322d69636f666f6e742f6c6963656e7365)](https://packagist.org/packages/loveorigami/yii2-icofont)

This extension provides a assets bundle with [IcoFont](http://icofont.com) for Yii framework 2.0 applications and helper to use icons.

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

[](#installation)

The preferred way to install this extension is through [composer](https://getcomposer.org/).

Either run

```
composer require "loveorigami/yii2-icofont:*"
```

or add

```
"loveorigami/yii2-icofont": "*",

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

In view

```
lo\icofont\IcoFontAsset::register($this);
```

or as dependency in your main application asset bundle

```
class AppAsset extends AssetBundle
{
	// ...

	public $depends = [
		// ...
		'lo\icofont\IcoFontAsset'
	];
}
```

IcoFont (FI) helper examples
----------------------------

[](#icofont-fi-helper-examples)

```
use lo\icofont\FI;

// normal use
echo FI::icon('home'); //

// shortcut
echo FI::i('home'); //

// icon with additional attributes
echo FI::icon(
    'arrow-left',
    ['class' => 'big', 'data-role' => 'arrow']
); //

// icon in button
echo Html::submitButton(
    Yii::t('app', '{icon} Save', ['icon' => FI::icon('check')])
); //  Save

// icon with additional methods
echo FI::icon('arrow-right')->inverse();    //
echo FI::icon('spinner')->spin();           //
echo FI::icon('home')->fixedWidth();        //
echo FI::icon('home')->li();                //
echo FI::icon('home')->border();            //
echo FI::icon('arrow-right')->pullLeft();   //
echo FI::icon('arrow-right')->pullRight();  //

// icon size
echo FI::icon('adjust')->size(FI::SIZE_3X);
// values: FI::SIZE_LARGE, FI::SIZE_2X, FI::SIZE_3X, FI::SIZE_4X, FI::SIZE_5X
//

// icon rotate
echo FI::icon('adjust')->rotate(FI::ROTATE_90);
// values: FI::ROTATE_90, FI::ROTATE_180, FI::ROTATE_180
//

// icon flip
echo FI::icon('adjust')->flip(FI::FLIP_VERTICAL);
// values: FI::FLIP_HORIZONTAL, FI::FLIP_VERTICAL
//

// icon with multiple methods
echo FI::icon('home')
        ->spin()
        ->fixedWidth()
        ->pullLeft()
        ->size(FI::SIZE_LARGE);
//

// icons stack
echo FI::stack()
        ->on('square')
        ->icon('shield');
//
//
//
//

// icons stack with additional attributes
echo FI::stack(['data-role' => 'stacked-icon'])
     ->on(FI::icon('square')->inverse())
     ->icon(FI::icon('shield')->spin());
//
//
//
//

// unordered list icons
echo FI::ul(['data-role' => 'unordered-list'])
    ->item('spinner', 'Bullet item')
    ->item('check', 'Checked item');
//
//   Bullet item
//   Checked Item
//

// autocomplete icons name in IDE
echo FI::icon(FI::_MAGIC);
echo FI::icon(FI::_ARROW_RIGHT);
echo FI::stack()
     ->on(FI::_SQUARE)
     ->icon(FI::_SHIELD);
```

See also
--------

[](#see-also)

- [FontAwesome](https://github.com/rmrevin/yii2-fontawesome)

License
-------

[](#license)

**loveorigami/yii2-icofont** is released under the MIT License. See the bundled `LICENSE.md` for details.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3593d ago

### Community

Maintainers

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

---

Top Contributors

[![loveorigami](https://avatars.githubusercontent.com/u/98164?v=4)](https://github.com/loveorigami "loveorigami (32 commits)")

---

Tags

icofonticonsyii2-icofonticonsyii2fonticofont

### Embed Badge

![Health badge](/badges/loveorigami-yii2-icofont/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)

PHPackages © 2026

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