PHPackages                             rowe/yii2-region - 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. rowe/yii2-region

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

rowe/yii2-region
================

Yii2中国省市区三级联动

v1.0(8y ago)0191BSD-3-ClauseJavaScript

Since Aug 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Rowe/yii2-region)[ Packagist](https://packagist.org/packages/rowe/yii2-region)[ RSS](/packages/rowe-yii2-region/feed)WikiDiscussions master Synced 2w ago

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

yii2-region
===========

[](#yii2-region)

This is an Yii2 widget for Chinese region list field. ()

Demo
----

[](#demo)

[![image](https://raw.githubusercontent.com/Rowe/yii2-region/master/yii2_region_demo.png)](https://raw.githubusercontent.com/Rowe/yii2-region/master/yii2_region_demo.png)

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

[](#installation)

Add to composer.json file with:

```
"rowe/yii2-region": "dev-master"

```

Configuration
-------------

[](#configuration)

Copy the @rowe/yii2-region/src/migrations/m170621\_032947\_region.php to the migration folder like console/migrations. Run

```
"Yii migrate"

```

The region codes would be inserted via Yii migration

Usage
-----

[](#usage)

Firstly, bind the behavior to your model which need to use the region fields.

```
public function behaviors()
{
    return [
        'RegionBehavior' => [
            'class' => RegionBehavior::className(),
        ]
    ];
}
```

And then, use the widget in the view.

```

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3253d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/471083?v=4)[Rowe](/maintainers/Rowe)[@Rowe](https://github.com/Rowe)

---

Top Contributors

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

---

Tags

extensionregionyii2yii2cityregionprovincedistrict

### Embed Badge

![Health badge](/badges/rowe-yii2-region/health.svg)

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

PHPackages © 2026

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