PHPackages                             colee/yii2-widgets - 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. colee/yii2-widgets

ActiveLibrary

colee/yii2-widgets
==================

widgets library for Yii2 framework

06PHP

Since Apr 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/colee1985/yii2-widgets)[ Packagist](https://packagist.org/packages/colee/yii2-widgets)[ RSS](/packages/colee-yii2-widgets/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-widgets
============

[](#yii2-widgets)

Yii2通用组件库
---------

[](#yii2通用组件库)

### 多级联动的下拉菜单

[](#多级联动的下拉菜单)

> 重点： 每一级都使用ajax获取数据，所以需要提供每一级的ajax url 必须填写每一级的模型属性(attribute)

```
LinkageSelect::widget([
     'model'=>$model,
     'template'=>'{item-0} {item-1}', // 可选项
     'items'=>[
         [
             'attribute'=>'city_id',
             'url'=>['city/find'],
             'initValueText'=>'北京',
         ],
         [
             'attribute'=>'area_id',
             'url'=>['area/find'],
             'initValueText'=>'朝阳',
         ]
     ],
     'hideSearch'=>true,
]);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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/db0473ddb3ebe0eed43d1ff2814b70630f0e9373d0878c006307684d2cb3776c?d=identicon)[colee](/maintainers/colee)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/colee-yii2-widgets/health.svg)

```
[![Health](https://phpackages.com/badges/colee-yii2-widgets/health.svg)](https://phpackages.com/packages/colee-yii2-widgets)
```

PHPackages © 2026

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