PHPackages                             bariew/yii2-dropdown-x - 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. bariew/yii2-dropdown-x

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

bariew/yii2-dropdown-x
======================

An extended bootstrap dropdown widget for Yii 2 with submenu drilldown.

1.0.6(10y ago)16.1k↓26.7%1BSD 3-ClausePHP

Since Sep 1Pushed 10y ago1 watchersCompare

[ Source](https://github.com/bariew/yii2-dropdown-x)[ Packagist](https://packagist.org/packages/bariew/yii2-dropdown-x)[ RSS](/packages/bariew-yii2-dropdown-x/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (9)Used By (1)

yii2-dropdown-x
===============

[](#yii2-dropdown-x)

An extended bootstrap dropdown widget for Yii Framework 2 with submenu drilldown. This widget extends the `\yii\bootstrap\Dropdown` widget with some additional controls and adds CSS and JS for enabling a submenu drilldown. The dropdown menu style is optimized for both desktop and mobile devices. The drilldown is triggered on `active` instead of `hover` so that it works equally well on mobile devices.

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

[](#installation)

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

> Note: You must set the `minimum-stability` to `dev` in the **composer.json** file in your application root folder before installation of this extension.

Either run

```
$ php composer.phar require bariew/yii2-dropdown-x "dev-master"

```

or add

```
"bariew/yii2-dropdown-x": "dev-master"

```

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

Usage
-----

[](#usage)

### DropdownX

[](#dropdownx)

```
use bariew\dropdown\DropdownX;
echo DropdownX::widget([
    'items' => [
        ['label' => 'Action', 'url' => '#'],
        ['label' => 'Submenu', 'items' => [
            ['label' => 'Action', 'url' => '#'],
            ['label' => 'Another action', 'url' => '#'],
            ['label' => 'Something else here', 'url' => '#'],
        ]],
        ['label' => 'Something else here', 'url' => '#'],
        '',
        ['label' => 'Separated link', 'url' => '#'],
    ],
]);
```

License
-------

[](#license)

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

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 60.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 ~87 days

Recently: every ~108 days

Total

8

Last Release

3710d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8214f36975034f4134506744cd956e8415491006c1b3512af22bf75f91165f06?d=identicon)[bariew](/maintainers/bariew)

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (14 commits)")[![bariew](https://avatars.githubusercontent.com/u/827508?v=4)](https://github.com/bariew "bariew (9 commits)")

---

Tags

Contextmenuyii2extensionwidgetmouseclick

### Embed Badge

![Health badge](/badges/bariew-yii2-dropdown-x/health.svg)

```
[![Health](https://phpackages.com/badges/bariew-yii2-dropdown-x/health.svg)](https://phpackages.com/packages/bariew-yii2-dropdown-x)
```

###  Alternatives

[kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

27586.4k6](/packages/kartik-v-yii2-nav-x)[kartik-v/yii2-dropdown-x

An extended bootstrap 3.x dropdown widget for Yii 2 with submenu drilldown.

16875.5k6](/packages/kartik-v-yii2-dropdown-x)[kartik-v/yii2-widget-sidenav

An enhanced side navigation menu styled for bootstrap (sub repo split from yii2-widgets)

374.2M8](/packages/kartik-v-yii2-widget-sidenav)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1359.3k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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