PHPackages                             worstinme/yii2-uikit - 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. worstinme/yii2-uikit

ActiveYii2-extension

worstinme/yii2-uikit
====================

Uikit3 for Yii2

1.2.12(8y ago)445.9k↓45.5%63MITPHP

Since Nov 26Pushed 6y ago3 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (14)Used By (3)

Uikit 3 extensions for Yii2
===========================

[](#uikit-3-extensions-for-yii2)

Widgets &amp; assets for a lightweight and modular front-end framework [UiKit](http://getuikit.com/)

Installation of yii2-uikit Extension
------------------------------------

[](#installation-of-yii2-uikit-extension)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/). You have to set in your project's composer.json to use this package, because of Uikit 3 RC version.

```
"minimum-stability": "dev",
"prefer-stable":true,
```

After this settings, just run:

```
composer require --prefer-dist worstinme/yii2-uikit:"dev-master"

```

or add

```
"worstinme/yii2-uikit": "dev-master"

```

to the require section of your `composer.json` file and start composer update

Assets usage exaple:
--------------------

[](#assets-usage-exaple)

For example, including main UiKit css &amp; js files in any view files

```
\worstinme\uikit\Asset::register($this);
\worstinme\uikit\IconAsset::register($this);
```

ActiveForm improvements examples:
---------------------------------

[](#activeform-improvements-examples)

Horizontal layout for ActiveForm

```
$form = ActiveForm::begin([
    'layout'=>'horizontal', // also available 'stacked' option
]);
```

To get a column layout in grid mode you can modify those options

```
$form = ActiveForm::begin([
    'layout'=>'stacked',
    'grid'=>true,
    'options'=>['class'=>'uk-child-width-1-2@m uk-form-small uk-grid-match'],
    'fieldConfig' => [
        'width' => "1-3@m"
    ],
]);
```

Different options for single field

```
$form->field($model,'attribute',['width'=>'auto@m']);
```

ActiveField additional methods:
-------------------------------

[](#activefield-additional-methods)

The code below will generate question icon (?), placed after label text, with information showed with uk-tooltip

```
$form->field($model,'attribute')->label('label')->info('Additional info to the label of this field');
```

This will generate &lt;i uk-icon="lock"&gt;&lt;/i&gt; inside input field wrapped by div.uk-inline

```
$form->field($model,'attribute')->icon('lock');
```

Icon can be placed in the right side of input field or changed to non uikit icon by this settings

```
$form->field($model,'attribute')->icon('',['flip'=>true,'uikit'=>false,'tag'=>'a','href'=>'http://example.com']);
```

Alert widgets:
--------------

[](#alert-widgets)

Alert renders an alert uikit component.

For example,

```
echo Alert::widget([
  'type'=>'primary',
  'body' => 'Say hello...',
]);
```

The following example will show the content enclosed between the \[\[begin()\]\] and \[\[end()\]\] calls within the alert box:

```
Alert::begin([
  'type' => 'warning',
  'closeButton'=>false,
]);

echo 'Say hello...';

Alert::end();
```

And the AlertFlashes widget to automatically call alert widgets for existing flash messages stored in session

```
\worstinme\uikit\extend\AlertFlashes::widget();

```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 95.9% 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 ~71 days

Recently: every ~82 days

Total

12

Last Release

3043d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2964518?v=4)[Eugene Zakirov](/maintainers/worstinme)[@worstinme](https://github.com/worstinme)

---

Top Contributors

[![worstinme](https://avatars.githubusercontent.com/u/2964518?v=4)](https://github.com/worstinme "worstinme (94 commits)")[![portenko](https://avatars.githubusercontent.com/u/11551744?v=4)](https://github.com/portenko "portenko (3 commits)")[![RastislavBr](https://avatars.githubusercontent.com/u/11096391?v=4)](https://github.com/RastislavBr "RastislavBr (1 commits)")

---

Tags

yii2widgetsuikit

### Embed Badge

![Health badge](/badges/worstinme-yii2-uikit/health.svg)

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

###  Alternatives

[asinfotrack/yii2-toolbox

Yii2-Toolbox is a collection of useful helpers, widgets etc. extending the basic functionality of Yii2

1230.5k5](/packages/asinfotrack-yii2-toolbox)

PHPackages © 2026

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