PHPackages                             dalencar/yii2-webfontkit - 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. dalencar/yii2-webfontkit

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

dalencar/yii2-webfontkit
========================

Set of icon frameworks for use in Yii Framework 2.0

013PHP

Since Apr 26Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-webfontkit
===============

[](#yii2-webfontkit)

This extension offers an easy method to setup various webfont frameworks to work with Yii Framework 2.0.

1. [Open Sans](http://www.google.com/fonts/specimen/Open+Sans)
2. [Roboto](http://www.google.com/fonts/specimen/Roboto)

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

[](#installation)

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

> Note: Check the [composer.json](https://github.com/kartik-v/yii2-icons/blob/master/composer.json) for this extension's requirements and dependencies.

Either run

```
$ php composer.phar require dalencar/yii2-webfontkit "dev-master"

```

or add

```
"dalencar/yii2-webfontkit": "dev-master"

```

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

Usage
-----

[](#usage)

### Global Setup

[](#global-setup)

In case you wish to setup one or more Webfont framework globally, set the parameter `webfontkit-framework` in the `params` array of your Yii Configuration File.

```
'params' => [
  'webfontkit-framework' => [
    'os',  // Open Sans Webfont framework
  ],
]
```

To initialize the globally setup framework, you can proceed in one of two ways:

1. In your view, call this code in your view or view layout file:

```
use dalencar\webfontkit\WebFontKit;
WebFontKit::register($this);
```

2. Or in your asset bundle, adding the dalencar\\webfontkit\\WebFontKit class as depends

```
public $depends [
  'dalencar\webfontkit\WebFontKit',
],
```

### Per View Setup

[](#per-view-setup)

You can also call each icon-framework individually in your view or view layout like below. Map any icon framework within each view as in the example below.

```
use dalencar\webfontkit\WebFontKit;
WebFontKit::register($this, WebFontKit::OS); // Register the Open Sans webfont framework
```

License
-------

[](#license)

**yii2-webfontkit** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3989763?v=4)[Davidson Alencar](/maintainers/davidsonalencar)[@davidsonalencar](https://github.com/davidsonalencar)

---

Top Contributors

[![davidsonalencar](https://avatars.githubusercontent.com/u/3989763?v=4)](https://github.com/davidsonalencar "davidsonalencar (2 commits)")

### Embed Badge

![Health badge](/badges/dalencar-yii2-webfontkit/health.svg)

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

PHPackages © 2026

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