1. Go to this page and download the library: Download zmrq/ektp 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/ */
zmrq / ektp example snippets
Zmrq\Ektp\eKTP;
$ktp = new eKTP();
// Generate Province
echo "Generated Province Name: " . $ktp->province->name;
echo "Generated Province Code: " . $ktp->province->code;
//Generate District
echo "Generated District Code: " . $ktp->district->code;
echo "Generated District Name: " . $ktp->district->name;
// Generate City
echo "Generated City Code: " . $ktp->city->code;
echo "Generated City Name: " . $ktp->city->name;