PHPackages                             denisok94/yii2-widgets - 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. denisok94/yii2-widgets

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

denisok94/yii2-widgets
======================

\--

0.0.3(1y ago)03BSD-3-ClausePHP

Since Mar 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Denisok94/yii2-widgets)[ Packagist](https://packagist.org/packages/denisok94/yii2-widgets)[ RSS](/packages/denisok94-yii2-widgets/feed)WikiDiscussions main Synced 1mo ago

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

Yii2 widgets
============

[](#yii2-widgets)

Набор виджетов для yii2 на базе yii\\bootstrap4\\Widget

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

[](#installation)

```
composer require --prefer-dist denisok94/yii2-widgets
# or
php composer.phar require --prefer-dist denisok94/yii2-widgets
```

Use
---

[](#use)

- [NavTabs](#NavTabs)
- [Box](#Box)
- [BlokFiles](#BlokFiles)

NavTabs
-------

[](#navtabs)

[![example NavTabs1.png](doc/NavTabs1.png)](doc/NavTabs1.png)[![example NavTabs2.png](doc/NavTabs2.png)](doc/NavTabs2.png)

```
use denisok94\yii2\widgets\NavTabs;
echo NavTabs::widget(['tabs' => [
    '1' => [
        'label' => 'label 1',
        'content' => 'content  text 1',
    ],
    '2' => [
        'label' => 'label 2',
        'content' => 'content text 2',
    ],
    '3' => [
        'label' => 'label 3',
        'content' => 'content 3',
        'disabled' => true
    ],
 //...
]])
echo NavTabs::widget(['tabs' => [
    'overview' => [
        'label' => 'Обзор',
        'content' => $this->render('_overview', [
            'model' => $model,
        ])
    ],
    'story' => [
        'label' => 'История',
        'content' => $this->render('_story', [
            'model' => $model,
        ])
    ],
    'outfit' => [
        'label' => 'Одежда',
        'content' => $this->render('_outfit', [
            'model' => $model,
        ]),
        'disabled' => true
    ],
]]);
```

Box
---

[](#box)

[![example Box.png](doc/Box.png)](doc/Box.png)

```
use denisok94\yii2\widgets\Box;

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
    Someone famous in Source Title

```

BlokFiles
---------

[](#blokfiles)

Базовая горизонтальная группировка (тест)

```
use denisok94\yii2\widgets\BlokFiles;
echo BlokFiles::widget([
 'items' => $items,
 'options' => [
     'a' => [], // or 'div' => [],
     'img' => [],
     'span' => []]
]);
```

options a/img:

```
$options = [
     'url' => '/app/',
     'key' => 'id', // items->id
]; // url + key
$options = [
     'url' => '/app/${key}.png',
     'key' => 'id', // items->id
     'parse' => true,
]; // url/key.png
```

options span: `['key' => 'id', // items->id]`.

base yii html options add `['options' => []]`.

```
use denisok94\yii2\widgets\BlokFiles;
echo BlokFiles::widget([
 'items' => $items,
 'callback' => function ($action, $item, $key) {
     return $action = 'img' ? 'url1' : 'url2';
  },
]);
```

location full

```
use denisok94\yii2\widgets\BlokFiles;
echo BlokFiles::widget([
 'items' => $items,
 'options' => [
     'a' => [
         'url' => '/app/',
         'key' => 'id', // items->id
     ],
     'img' => [
         'url' => '/app/${key}.png',
         'key' => 'id', // items->id
         'parse' => true,
     ],
     'span' => [
         'key' => 'name', // items->name
     ],
 ]
]);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance45

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

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

Total

3

Last Release

430d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/59793012?v=4)[Денис](/maintainers/Denisok94)[@Denisok94](https://github.com/Denisok94)

---

Top Contributors

[![Denisok94](https://avatars.githubusercontent.com/u/59793012?v=4)](https://github.com/Denisok94 "Denisok94 (5 commits)")

---

Tags

yii2-extension

### Embed Badge

![Health badge](/badges/denisok94-yii2-widgets/health.svg)

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

###  Alternatives

[hail812/yii2-adminlte-widgets

yii2 adminlte widgets

10246.8k4](/packages/hail812-yii2-adminlte-widgets)[simialbi/yii2-kanban

Kanban board module for yii2

111.1k1](/packages/simialbi-yii2-kanban)

PHPackages © 2026

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