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

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

fredyns/yii2-region-id
======================

Indonesia regional &amp; postcode database as Yii2 Extension

2141PHP

Since Aug 4Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#yii2-region-id)

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

Database based on Minister of Home Affairs Regulation (Permendagri no 39 tahun 2015).

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

[](#installation)

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

```

Config
------

[](#config)

in web.php or common.php to activate module

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

in console.php

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

Migration
---------

[](#migration)

```
yii migrate

```

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

Usage
-----

[](#usage)

Open address `/region`

Try address form, new region will be added automatically.

Thanks
------

[](#thanks)

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

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

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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://avatars.githubusercontent.com/u/4033019?v=4)[Fredy Nurman Saleh](/maintainers/fredyns)[@fredyns](https://github.com/fredyns)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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