PHPackages                             rzlco666/yii2-region-id-migrations - 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. [Database &amp; ORM](/categories/database)
4. /
5. rzlco666/yii2-region-id-migrations

ActiveYii2-extension[Database &amp; ORM](/categories/database)

rzlco666/yii2-region-id-migrations
==================================

Indonesia regional &amp; postcode database as Yii2 Migrations

v2022(3y ago)038MITPHP

Since Oct 6Pushed 3y agoCompare

[ Source](https://github.com/rzlco666/yii2-region-id-migrations)[ Packagist](https://packagist.org/packages/rzlco666/yii2-region-id-migrations)[ RSS](/packages/rzlco666-yii2-region-id-migrations/feed)WikiDiscussions master Synced 1mo ago

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

yii2-region-id-migration
========================

[](#yii2-region-id-migration)

**Indonesia regional &amp; postcode database as Yii2 Migrations**

Database based on Minister of Home Affairs Regulation [(Kepmendagri No. 050-145 Tahun 2022)](https://www.kemendagri.go.id/arsip/detail/10857/keputusan-menteri-dalam-negeri-nomor-050145-tahun-2022-tentang-pemberian-kode-data-wilayah-administrasi-pemerintahan-dan-pulau-tahun-2021).

This repository will be updated when there is a new regulation.

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

[](#installation)

```
composer require rzlco666/yii2-region-id-migrations:"@dev"

```

Config
------

[](#config)

in web.php or common.php for **(yii2-basic)** and main.php for **(yii2-advanced)** to activate module

```
    'modules' => [
        'region' => [
            'class' => 'rzlco666\region\Module',
        ],
    ],
```

in console.php for **(yii2-basic)** and console/config/main.php for **(yii2-advanced)**

```
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationNamespaces' => [
                'rzlco666\region\migrations',
            ],
        ],
    ],
```

Migration
---------

[](#migration)

```
yii migrate

```

Or

```
php yii migrate

```

if you config console.php properly in latest yii, it will detect migration inside vendor folder

Thanks
------

[](#thanks)

[database wilayah by cahyadsn](https://github.com/cahyadsn/wilayah)[kodepos by edwinkun](https://github.com/edwinkun/database-kodepos-seluruh-indonesia)

created by [fredyns](http://fredyns.net)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

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

1315d ago

### Community

Maintainers

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

---

Top Contributors

[![fredyns](https://avatars.githubusercontent.com/u/4033019?v=4)](https://github.com/fredyns "fredyns (51 commits)")[![rzlco666](https://avatars.githubusercontent.com/u/62584843?v=4)](https://github.com/rzlco666 "rzlco666 (5 commits)")

---

Tags

yii2extensionindonesialbacdatabase-wilayahregional database

### Embed Badge

![Health badge](/badges/rzlco666-yii2-region-id-migrations/health.svg)

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

###  Alternatives

[dmstr/yii2-migrate-command

Console Migration Command with multiple paths/aliases support

31295.5k6](/packages/dmstr-yii2-migrate-command)[dmstr/yii2-db

Database extensions

19618.8k6](/packages/dmstr-yii2-db)[sjaakp/yii2-spatial

Yii2 ActiveRecord supporting MySQL spatial data

1873.8k1](/packages/sjaakp-yii2-spatial)

PHPackages © 2026

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