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

ActiveYii2-extension

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 2d 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://www.gravatar.com/avatar/697aad30f5dc5ec23e41b1d5089cee94a64dd71e81979c8c2cd6880a7ec51df3?d=identicon)[fredyns](/maintainers/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)
```

PHPackages © 2026

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