PHP code example of kejawenlab / nusantara
1. Go to this page and download the library: Download kejawenlab/nusantara library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kejawenlab / nusantara example snippets
[KODE_PROPINSI] =>
'name' => [NAMA_PROPINSI],
'district' => [
[KODE_KABUPATEN] => [
'name' => [NAMA_KABUPATEN],
'sub_district' => [
[KODE_KECAMATAN] => [
'name' => [NAMA_KECAMATAN],
'village => [
[KODE_DESA] => [NAMA_DESA]
]
]
]
]
]
use KejawenLab\Nusantara\Nusantara;
$nusantara = new Nusantara();
//Data sebagai array dengan format seperti di atas
$result = $nusantara->fetch();
bash
php nusantara