PHP code example of kangyasin / ktp-nik-convert

1. Go to this page and download the library: Download kangyasin/ktp-nik-convert 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/ */

    

kangyasin / ktp-nik-convert example snippets




use Kangyasin\KTPNIKConvert\NikConvert;

$nik = '6408132511960005';
$nikConvert= new NikConvert();

return $nikConvert->convert($nik);