PHPackages                             dungang/yii2-select-box - 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. dungang/yii2-select-box

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dungang/yii2-select-box
=======================

Bootstrap Select Box for Yii2

0.0.1(8y ago)05MITPHPPHP &gt;=5.4.0

Since Jun 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dungang/yii2-select-box)[ Packagist](https://packagist.org/packages/dungang/yii2-select-box)[ RSS](/packages/dungang-yii2-select-box/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

yii2-select-box
===============

[](#yii2-select-box)

select box for Yii2 由一个选框添加到另外一个选框

> 效果图片

[![demo](images/demo.png)](images/demo.png)

安装
--

[](#安装)

```
composer require dungang/yii2-select-box

```

使用
--

[](#使用)

> 方法1

```
dungang\selectbox\SelectBox::widget([
    'name'=>'parent',
    'sourceItems'=>['val1'=>'text1','val2'=>'text2'],
    'targetItems'=>['val3'=>'text3','val4'=>'text4'],
])

```

> 方法2

```
$form->field($model,'parents')->widget('dungang\selectbox\SelectBox',[
    'sourceItems'=>['val1'=>'text1','val2'=>'text2'],
    'targetItems'=>['val3'=>'text3','val4'=>'text4'],
])

```

协议
--

[](#协议)

MIT License

Copyright (c) 2017 dungang

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2944d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7221526?v=4)[顿刚](/maintainers/dungang)[@dungang](https://github.com/dungang)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/dungang-yii2-select-box/health.svg)

```
[![Health](https://phpackages.com/badges/dungang-yii2-select-box/health.svg)](https://phpackages.com/packages/dungang-yii2-select-box)
```

###  Alternatives

[wbraganca/yii2-tagsinput

The yii2-tagsinput is a Yii 2 wrapper for \[bootstrap-tagsinput\](https://github.com/timschlechter/bootstrap-tagsinput). A user interface for managing tags.

32160.4k1](/packages/wbraganca-yii2-tagsinput)

PHPackages © 2026

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