PHPackages                             echotrue/yii2-area - 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. echotrue/yii2-area

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

echotrue/yii2-area
==================

Yii2.0 area selecter

1.0(9y ago)120BSD-2-Clause

Since Dec 22Compare

[ Source](https://github.com/echotrue/yii2-area-selecter)[ Packagist](https://packagist.org/packages/echotrue/yii2-area)[ RSS](/packages/echotrue-yii2-area/feed)WikiDiscussions Synced 2w ago

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

Yii2.0 area selecter
====================

[](#yii20-area-selecter)

Yii2.0 area selecter

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require --prefer-dist echotrue/yii2-area "*"

```

or add

```
"echotrue/yii2-area": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
 Controller :
 public function actions()
     {
         return [
             'area'    => [
                 'class' => 'echotrue\area\AreaAction',
                 'tableName' => 'china_area',
             ]
         ];
     }

 View:

```

or

```
    Controller :
    public function actions()
     {
         return [
             'area'    => [
                 'class' => 'echotrue\area\AreaAction',
                 'tableName' => 'china_area',
             ]
         ];
     }
     View:
    echo \echotrue\area\Area::widget([
        'name'    => 'name',
        'options' => [
            'tableName' => 'china_area',
            'url'       => \yii\helpers\Url::to(['site/area'])
        ]
    ]);
```

configuration
-------------

[](#configuration)

options:

- `tableName` : The table'name of the area source,without table prefix
- `url` : The request url for inline actions .
- `template` : default template like this , maybe you can customize your template

```

    {hideInput}
    {province}
    {city}
    {regional}

```

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

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

3522d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/echotrue-yii2-area/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13926.0k65](/packages/skeeks-cms)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1457.4k](/packages/dmstr-yii2-cookie-consent)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

2111.7k](/packages/imanilchaudhari-yii2-currency-converter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1361.1k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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