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

ActiveYii2-extension

kartik-v/yii2-dropdown-x
========================

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

v1.2.1(4y ago)16842.3k↓14.1%56BSD 3-ClausePHP

Since Oct 5Pushed 4y ago3 watchersCompare

[ Source](https://github.com/kartik-v/yii2-dropdown-x)[ Packagist](https://packagist.org/packages/kartik-v/yii2-dropdown-x)[ Docs](https://github.com/kartik-v/yii2-dropdown-x)[ RSS](/packages/kartik-v-yii2-dropdown-x/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (6)

 [ ![Krajee Logo](https://camo.githubusercontent.com/4addfbb3869c3fc7d79befea4f06d9cf3655a686fb503df0da1d725859cfdef9/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f6b72616a65652d6c6f676f2d622e706e67) ](http://demos.krajee.com "Krajee Demos")
 yii2-dropdown-x ---

 [![Donate](https://camo.githubusercontent.com/0336bc43d88554a3f2d6c74dddf312bc2c65c2eacca70d83ae40f5567098d00e/68747470733a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f646f6e6174652e706e67)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU "Donate via Paypal") [![kartikv](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/kartikv "Buy me a coffee")
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#------------------------yii2-dropdown-x------------------)

[![Stable Version](https://camo.githubusercontent.com/2e6a792b285f91ba5cc83feef09f3bf7529fa6f7adb97dec6a13fa29b4a63c2b/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64726f70646f776e2d782f762f737461626c65)](https://packagist.org/packages/kartik-v/yii2-dropdown-x)[![Unstable Version](https://camo.githubusercontent.com/e6e7648889eddd0ea18dd48f7e80b14ffcd9da1aa819df5d54968160e8c03b53/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64726f70646f776e2d782f762f756e737461626c65)](https://packagist.org/packages/kartik-v/yii2-dropdown-x)[![License](https://camo.githubusercontent.com/7f6dcdee7081daf5eb4de992442cc63694093a4c4f5efeb0ccb717f9d7ddb434/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64726f70646f776e2d782f6c6963656e7365)](https://packagist.org/packages/kartik-v/yii2-dropdown-x)[![Total Downloads](https://camo.githubusercontent.com/bf1382c41bedecb3282d315e80c84b5070b6d7b963d24d7510e2229f67aefad6/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64726f70646f776e2d782f646f776e6c6f616473)](https://packagist.org/packages/kartik-v/yii2-dropdown-x)[![Monthly Downloads](https://camo.githubusercontent.com/15d3956e11c7c9a926e94634f3a93fcac20bf2ffd55d4c36c54a1702f6a543f2/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64726f70646f776e2d782f642f6d6f6e74686c79)](https://packagist.org/packages/kartik-v/yii2-dropdown-x)[![Daily Downloads](https://camo.githubusercontent.com/9085a00ed3eb312e70af68b4ec380a7ad0e0373f2b68e4bf69fc2691e60c8f0c/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d64726f70646f776e2d782f642f6461696c79)](https://packagist.org/packages/kartik-v/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.

### Docs &amp; Demo

[](#docs--demo)

You can see detailed [docs &amp; demos](http://demos.krajee.com/dropdown-x) and the API [code documentation](https://docs.krajee.com/kartik-dropdown-dropdownx) on usage of the extension.

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-dropdown-x/blob/master/composer.json) for this extension's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.

Either run

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

```

or add

```
"kartik-v/yii2-dropdown-x": "dev-master"

```

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

Usage
-----

[](#usage)

### DropdownX

[](#dropdownx)

```
use kartik\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

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 93.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 ~884 days

Total

4

Last Release

1589d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3592619?v=4)[Kartik Visweswaran](/maintainers/kartik-v)[@kartik-v](https://github.com/kartik-v)

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (31 commits)")[![dkhlystov](https://avatars.githubusercontent.com/u/9457517?v=4)](https://github.com/dkhlystov "dkhlystov (2 commits)")

---

Tags

Contextmenuyii2extensionwidgetmouseclick

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-nav-x

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

27564.8k6](/packages/kartik-v-yii2-nav-x)[kartik-v/yii2-grid

Yii 2 GridView on steroids. Various enhancements and utilities for the Yii 2.0 GridView widget.

5576.6M179](/packages/kartik-v-yii2-grid)[kartik-v/yii2-widget-sidenav

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

364.0M8](/packages/kartik-v-yii2-widget-sidenav)[kartik-v/yii2-widget-growl

A widget to generate growl based notifications using bootstrap-growl plugin (sub repo split from yii2-widgets)

384.2M14](/packages/kartik-v-yii2-widget-growl)[kartik-v/yii2-detail-view

Enhanced Yii 2 Detail View widget with special Bootstrap styles, ability to edit data, and more.

701.1M41](/packages/kartik-v-yii2-detail-view)[kartik-v/yii2-widget-colorinput

An enhanced Yii 2 widget encapsulating the HTML 5 color input (sub repo split from yii2-widgets)

324.8M10](/packages/kartik-v-yii2-widget-colorinput)

PHPackages © 2026

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