PHPackages                             wdmg/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. [Framework](/categories/framework)
4. /
5. wdmg/yii2-widgets

ActiveYii2-extension[Framework](/categories/framework)

wdmg/yii2-widgets
=================

Widgets collection for Yii2

1.1.0(2y ago)065916MITPHP

Since Jan 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/wdmg/yii2-widgets)[ Packagist](https://packagist.org/packages/wdmg/yii2-widgets)[ Docs](https://github.com/wdmg/yii2-widgets)[ RSS](/packages/wdmg-yii2-widgets/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (7)Used By (6)

[![Yii2](https://camo.githubusercontent.com/dccea8d8aeed2f3bbad8d539958795bf54a03a62c61f496084516c1b1845a9ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72657175697265642d596969325f76322e302e33332d626c75652e737667)](https://packagist.org/packages/yiisoft/yii2)[![Downloads](https://camo.githubusercontent.com/0c4e369128d6d1815ea32ca80991e2f44a3d76ae22f6e11bed6a043ba349ea00/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77646d672f796969322d776964676574732e737667)](https://packagist.org/packages/wdmg/yii2-widgets)[![Packagist Version](https://camo.githubusercontent.com/b78bfa9f2c47a4a0c89b8e72ce138a36716306caa151a0dcb4ab9f46c903d875/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77646d672f796969322d776964676574732e737667)](https://packagist.org/packages/wdmg/yii2-widgets)[![Progress](https://camo.githubusercontent.com/315c55c18b58f54e699e6de550cbbec72c9adeebced7d22e2822458e07822fb3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d696e5f646576656c6f706d656e742d7265642e737667)](https://camo.githubusercontent.com/315c55c18b58f54e699e6de550cbbec72c9adeebced7d22e2822458e07822fb3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d696e5f646576656c6f706d656e742d7265642e737667)[![GitHub license](https://camo.githubusercontent.com/04fb6131f597daa1003b68d4bc4fd707dc585de070465eed5c520b9971b098fb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f77646d672f796969322d776964676574732e737667)](https://github.com/wdmg/yii2-widgets/blob/master/LICENSE)

Yii2 Widgets
============

[](#yii2-widgets)

Custom widgets collection for Yii2

NavContents::widget()
---------------------

[](#navcontentswidget)

The widget parses your HTML code for the presence of h1-h6 headers and forms a navigation list with the correct href, after which it render a Boostrap Nav before content.

If the h1-h6 headers does not have an `id` attribute, it will be generated automatically. The rest of the attributes of the headers, whether `class`, `style` or `data` will also be saved.

MenuContents::widget()
----------------------

[](#menucontentswidget)

The same as in the case of `NavContents::widget()`, but the usual `` list is formed at the output.

Requirements
============

[](#requirements)

- PHP 5.6 or higher
- Yii2 v.2.0.33 and newest

Installation
============

[](#installation)

To install the widgets, run the following command in the console:

`$ composer require "wdmg/yii2-widgets"`

Usage
=====

[](#usage)

Example of usecase NavContents::widget() in view instance:

```

```

Example of usecase MenuContents::widget() in view instance:

```

```

Example of usecase LangSwitcher::widget() in view instance of dashboard:

```

```

Example of usecase AliasInput::widget() in view instance of dashboard:

```

```

Status and version \[in progress development\]
==============================================

[](#status-and-version-in-progress-development)

- v.1.1.0 - Update copyrights
- v.1.0.4 - URL`s options in LangSwitcher
- v.1.0.3 - Added AliasInput::widget()
- v.1.0.2 - Added LangSwitcher::widget()
- v.1.0.1 - Up to date dependencies
- v.1.0.0 - Added NavContents::widget() and MenuContents::widget()

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity61

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

Recently: every ~299 days

Total

6

Last Release

1047d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1635637?v=4)[Alexsander Vyshnyvetskyy](/maintainers/alex-wdmg)[@alex-wdmg](https://github.com/alex-wdmg)

---

Top Contributors

[![alex-wdmg](https://avatars.githubusercontent.com/u/1635637?v=4)](https://github.com/alex-wdmg "alex-wdmg (13 commits)")

---

Tags

yii2extensionwidgetyiibootstrapwidgetswdmg

### Embed Badge

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

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[marekpetras/yii2-ajax-box-widget

Ajax Box widget for Yii 2 Framework.

1814.6k](/packages/marekpetras-yii2-ajax-box-widget)

PHPackages © 2026

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