PHPackages                             developeruz/yii2-drop-down-input-widget - 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. developeruz/yii2-drop-down-input-widget

ActiveYii2-extension

developeruz/yii2-drop-down-input-widget
=======================================

yii2 dropDown input widget for Yii2

123PHP

Since Dec 11Pushed 11y ago1 watchersCompare

[ Source](https://github.com/developeruz/yii2-drop-down-input-widget)[ Packagist](https://packagist.org/packages/developeruz/yii2-drop-down-input-widget)[ RSS](/packages/developeruz-yii2-drop-down-input-widget/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

InputWidget для dropDown в Yii2
===============================

[](#inputwidget-для-dropdown-в-yii2)

Виджет генерирует , используя модель, переданную в настройках виджета. Может использоваться как с ActiveForm так и сам по себе. Установка: $ php composer.phar require developeruz/yii2-drop-down-input-widget "\*" ###Простое использование### use developeruz\\drop\_down\\DropDown; echo DropDown::widget( \['name' =&gt; 'article', 'itemsModel' =&gt; Article::className(), 'itemsLabelAttribute' =&gt; 'title', \] ); В результате получится следующий html-код &lt;select name="article"&gt; &lt;option value="тут первичны ключ модели Article"&gt;Значение title модели Article&lt;/option&gt; &lt;option value="тут первичны ключ модели Article"&gt;Значение title модели Article&lt;/option&gt; &lt;option value="тут первичны ключ модели Article"&gt;Значение title модели Article&lt;/option&gt; ... &lt;/select&gt; ###Использование c ActiveForm### use developeruz\\drop\_down\\DropDown; &lt;?= $form-&gt;field($model, 'article\_id')-&gt;widget(DropDown::className(), \['itemsModel' =&gt; Article::className(), 'itemsLabelAttribute' =&gt; 'title', \]); ?&gt; ###Настройка виджета### Обязательными параметрами являются itemsModel и itemsLabelAttribute. В качестве ключа в формируемом select используется primaryKey() переданной модели. Это значение можно переопределить явно указав параметр itemsPKAttribute В случаи составного первичного ключа для формирования значения используется разделитель, задать который можно через параметр separator Так же можно передать параметр condition, который будет использован при выборке данных из модели Model::find()-&gt;where($this-&gt;condition)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b19e4f376a7fc95ccaf38274dc7768c7216d419b75b5a6da5d935c5d8521db3?d=identicon)[DeveloperUz](/maintainers/DeveloperUz)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/developeruz-yii2-drop-down-input-widget/health.svg)

```
[![Health](https://phpackages.com/badges/developeruz-yii2-drop-down-input-widget/health.svg)](https://phpackages.com/packages/developeruz-yii2-drop-down-input-widget)
```

PHPackages © 2026

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