PHPackages                             diginova/kartik-yii2-widget-depdrop - 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. diginova/kartik-yii2-widget-depdrop

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

diginova/kartik-yii2-widget-depdrop
===================================

Widget that enables setting up dependent dropdowns with nested dependencies (sub repo split from yii2-widgets)

0539↓50%PHP

Since Apr 6Pushed 3y agoCompare

[ Source](https://github.com/diginova/kartik-yii2-widget-depdrop)[ Packagist](https://packagist.org/packages/diginova/kartik-yii2-widget-depdrop)[ RSS](/packages/diginova-kartik-yii2-widget-depdrop/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

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

 [ ![Donate](https://camo.githubusercontent.com/4af77d425ca202e55ab3d711b438e238ded194735bc345a019ac060e03e26227/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f646f6e6174652e706e67) ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU "Donate via Paypal")
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#------------------------yii2-widget-depdrop--------------------)

[![Stable Version](https://camo.githubusercontent.com/c1e15553caace078f09676e61692f2833c1bb93e9b995a7480ffb661f2426ca6/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d64657064726f702f762f737461626c65)](https://packagist.org/packages/kartik-v/yii2-widget-depdrop)[![Unstable Version](https://camo.githubusercontent.com/07791e40a870b8b2ed2ad78e31797d94021e38bc62da78115c6660541205c317/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d64657064726f702f762f756e737461626c65)](https://packagist.org/packages/kartik-v/yii2-widget-depdrop)[![License](https://camo.githubusercontent.com/a1ae79871c66af6a812f3f7e9045a00068412f8d66497ae13c07ea6a7f0c3e7c/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d64657064726f702f6c6963656e7365)](https://packagist.org/packages/kartik-v/yii2-widget-depdrop)[![Total Downloads](https://camo.githubusercontent.com/fc06a080e032bb6489e9a7f99b0d2ea8b34177384fe6aded49b7934845b53c61/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d64657064726f702f646f776e6c6f616473)](https://packagist.org/packages/kartik-v/yii2-widget-depdrop)[![Monthly Downloads](https://camo.githubusercontent.com/6c8ab49d8e23549af8619b8ae666c2f747ffd47e672f73c1ab3870692970f43e/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d64657064726f702f642f6d6f6e74686c79)](https://packagist.org/packages/kartik-v/yii2-widget-depdrop)[![Daily Downloads](https://camo.githubusercontent.com/df4c5bec98ee6a3b9249fdbac9c5c94628223e121f5432b5d467d8567cfc1f53/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d64657064726f702f642f6461696c79)](https://packagist.org/packages/kartik-v/yii2-widget-depdrop)

The DepDrop widget is a Yii 2 wrapper for the [dependent-dropdown jQuery plugin by Krajee](http://plugins.krajee.com/dependent-dropdown). This plugin allows multi level dependent dropdown with nested dependencies. The plugin thus enables to convert normal select inputs to a dependent input field, whose options are derived based on value selected in another input/or a group of inputs. It works both with normal select options and select with optgroups as well.

> NOTE: This extension is a sub repo split of [yii2-widgets](https://github.com/kartik-v/yii2-widgets). The split has been done since 08-Nov-2014 to allow developers to install this specific widget in isolation if needed. One can also use the extension the previous way with the whole suite of [yii2-widgets](http://demos.krajee.com/widgets).

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Check the [composer.json](https://github.com/kartik-v/yii2-widget-depdrop/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.

To install, either run

```
$ php composer.phar require kartik-v/yii2-widget-depdrop "@dev"

```

or add

```
"kartik-v/yii2-widget-depdrop": "@dev"

```

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

Release Changes
---------------

[](#release-changes)

> NOTE: Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-depdrop/blob/master/CHANGE.md) for details on changes to various releases.

Demo
----

[](#demo)

You can refer detailed [documentation and demos](http://demos.krajee.com/widget-details/depdrop) on usage of the extension.

Usage
-----

[](#usage)

```
use kartik\depdrop\DepDrop;

// Normal parent select
echo $form->field($model, 'cat')->dropDownList($catList, ['id'=>'cat-id']);

// Dependent Dropdown
echo $form->field($model, 'subcat')->widget(DepDrop::classname(), [
     'options' => ['id'=>'subcat-id'],
     'pluginOptions'=>[
         'depends'=>['cat-id'],
         'placeholder' => 'Select...',
         'url' => Url::to(['/site/subcat'])
     ]
 ]);
```

License
-------

[](#license)

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

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/479de2550ad555c5fe1ece5ced49a05a57f2606c94c3bef7014ac8b4c0e58d91?d=identicon)[diginova](/maintainers/diginova)

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (23 commits)")[![demirmehmet0](https://avatars.githubusercontent.com/u/56119655?v=4)](https://github.com/demirmehmet0 "demirmehmet0 (22 commits)")[![AleksandrChernyavenko](https://avatars.githubusercontent.com/u/9691761?v=4)](https://github.com/AleksandrChernyavenko "AleksandrChernyavenko (3 commits)")[![ilgiz-badamshin](https://avatars.githubusercontent.com/u/7591988?v=4)](https://github.com/ilgiz-badamshin "ilgiz-badamshin (2 commits)")

### Embed Badge

![Health badge](/badges/diginova-kartik-yii2-widget-depdrop/health.svg)

```
[![Health](https://phpackages.com/badges/diginova-kartik-yii2-widget-depdrop/health.svg)](https://phpackages.com/packages/diginova-kartik-yii2-widget-depdrop)
```

###  Alternatives

[verbalexpressions/php-verbal-expressions

PHP Regular expressions made easy

2.4k49.4k2](/packages/verbalexpressions-php-verbal-expressions)[yasserbelhimer/agora-access-token-generator

RTC Token generator

108.8k](/packages/yasserbelhimer-agora-access-token-generator)

PHPackages © 2026

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