Indonesia regional & postcode database as Yii2 Extension
Database based on Minister of Home Affairs Regulation (Permendagri no 39 tahun 2015).
composer require fredyns/yii2-region-id:"@dev"
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',
],
],
],
yii migrate
if you config console.php properly in latest yii, it will detect migration inside vendor folder
Open address /region
Try address form, new region will be added automatically.
database daerah by cahyadsn kodepos by edwinkun
created by fredyns