fredyns / yii2-region-id
Indonesia regional & postcode database as Yii2 Extension
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
This package is auto-updated.
Last update: 2025-03-04 11:29:15 UTC
README
Indonesia regional & postcode database as Yii2 Extension
Database based on Minister of Home Affairs Regulation (Permendagri no 39 tahun 2015).
Installation
composer require fredyns/yii2-region-id:"@dev"
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
yii migrate
if you config console.php properly in latest yii, it will detect migration inside vendor folder
Usage
Open address /region
Try address form, new region will be added automatically.
Thanks
database daerah by cahyadsn kodepos by edwinkun
created by fredyns