The data are latest update from Central Agency on Statistics (Badan Pusat Statistic) - MFD and MBS Update.
- Create & Install Laravel Project, documentation here,
- Copy the file to
LaravelInstallation directories, - Open
database/migration/*create_area_codes_tablefile and modify:
// modify to your own connection name, see config/app.php protected $connection = ""; --> modify to your connection name // modify to your own table name protected $table = ""; --> modify to your table name
- Run
Laravel migrationto create thetable - Finally, run
Laravel artisan command:
php artisan freezy:fetch_mfdonline
--tableClass - PHP Namespace of your table.
--fresh - Truncate (delete all data) from table before running the scripts
Varchar(10) code - primary
Varchar(255) name
Varchar(10) parent_code
- The scripts are license under: MIT.
- The source data is attributed to Badan Pusat Statistik (BPS) Indonesia.
Your contributions are Great Help for others, come:
- Fork it (https://github.com/freezyoff/Wilayah-Administrasi-Indonesia).
- Create your feature branch (
git checkout -b my-new-feature). - Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin my-new-feature). - Create a new Pull Request.