freezyoff / Wilayah-Administrasi-Indonesia

Indonesia Administrative Teritory Division - Province, Cities, Districts, & Villages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Administrative Teritory division of Indonesia (Provinces, Cities, Districts, & Villages)

The data are latest update from Central Agency on Statistics (Badan Pusat Statistic) - MFD and MBS Update.

How to use

  1. Create & Install Laravel Project, documentation here,
  2. Copy the file to Laravel Installation directories,
  3. Open database/migration/*create_area_codes_table file 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
  1. Run Laravel migration to create the table
  2. Finally, run Laravel artisan command:
	php artisan freezy:fetch_mfdonline

Command Options

--tableClass - PHP Namespace of your table.
--fresh - Truncate (delete all data) from table before running the scripts

Database Fields

Varchar(10) code - primary
Varchar(255) name
Varchar(10) parent_code

License

Contributing

Your contributions are Great Help for others, come:

  1. Fork it (https://github.com/freezyoff/Wilayah-Administrasi-Indonesia).
  2. Create your feature branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin my-new-feature).
  5. Create a new Pull Request.

About

Indonesia Administrative Teritory Division - Province, Cities, Districts, & Villages

License:MIT License


Languages

Language:PHP 100.0%