PHPackages                             dungphanxuan/yii2-vnlocation - 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. dungphanxuan/yii2-vnlocation

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

dungphanxuan/yii2-vnlocation
============================

Flexible Viet Nam location module for Yii2

1.0(8y ago)101642[2 issues](https://github.com/dungphanxuan/yii2-vnlocation/issues)MITPHP

Since Aug 22Pushed 5y ago2 watchersCompare

[ Source](https://github.com/dungphanxuan/yii2-vnlocation)[ Packagist](https://packagist.org/packages/dungphanxuan/yii2-vnlocation)[ RSS](/packages/dungphanxuan-yii2-vnlocation/feed)WikiDiscussions master Synced today

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

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Yii 2 Viet Nam Location
=======================

[](#yii-2-viet-nam-location)

Requirements
------------

[](#requirements)

- yii2-widget-depdrop
- yii2-widget-select2

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

[](#installation)

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

Either run

```
php composer.phar require  dungphanxuan/yii2-vnlocation=dev-master

```

or add

```
"dungphanxuan/yii2-vnlocation": "@dev"
```

to the require section of your composer.json.

Then init migrate for setup table

- yii migrate --migrationPath=@vendor/dungphanxuan/yii2-vnlocation/migrations

Configure
---------

[](#configure)

> **NOTE:** Make sure that you don't have `go` component configuration in your config files.

Add following lines to your main configuration file:

```
'modules' => [
    'go' => [
        'class' => 'dungphanxuan\vnlocation\Module',
    ],
],
```

Import data
-----------

[](#import-data)

Fill console config:

```
'controllerMap' => [
        'location-import' => [
            'class' => \dungphanxuan\vnlocation\commands\ImportController::className(),
        ],
    ],
```

Run:

```
# Process and exit on finish
./yii location-import
```

Demo Location
-------------

[](#demo-location)

Access router **/go/demo-location** to see result

Todo
----

[](#todo)

- Init Migrate
- Init Region
- Init City
- Init District
- Init Ward
- Seed Data

Screenshots
-----------

[](#screenshots)

[Demo Image](https://goo.gl/iVVEpS)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 95.2% 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

3186d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e0aaf25de7ec6d7c547714bcb9da588a09e46a6656a7e67afba46ca9669f67a1?d=identicon)[dungphanxuan](/maintainers/dungphanxuan)

---

Top Contributors

[![dungphanxuan](https://avatars.githubusercontent.com/u/10725732?v=4)](https://github.com/dungphanxuan "dungphanxuan (20 commits)")[![dungmediabridge](https://avatars.githubusercontent.com/u/41981016?v=4)](https://github.com/dungmediabridge "dungmediabridge (1 commits)")

---

Tags

yii2yii2-vnlocationlocation managementdungphanxuan

### Embed Badge

![Health badge](/badges/dungphanxuan-yii2-vnlocation/health.svg)

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

###  Alternatives

[skeeks/cms

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

13825.6k47](/packages/skeeks-cms)

PHPackages © 2026

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