donyahmd / ktp-nik-parser
There is no license information available for the latest version (dev-master) of this package.
Check National Identity Number to Identity gender, birth of date, and region in Indonesia
dev-master
2024-02-21 14:12 UTC
This package is auto-updated.
Last update: 2024-05-21 14:38:57 UTC
README
Check National Identity Number to Identity gender, birth of date, and region in Indonesia.
Installation
composer require donyahmd/ktp-nik-parser
Usage
<?php use Donyahmd\KtpNikParser\NikParser; $nik = '6408132511960005'; $nikParser= new NikParser(); return $nikParser->parse($nik);
it will return an array:
{
"nik": "6408132511960005",
"province": {
"code": "64",
"name": "Kalimantan Timur"
},
"city": {
"code": "08",
"name": "Kabupaten Kutai Timur"
},
"district": {
"code": "13",
"name": "Teluk Pandan"
},
"date_of_birth": "25-11-1996",
"gender": "Male"
}
Changelog
Date | Log |
---|---|
February 2, 2021 | First Commit. |
February 2, 2021 | Adding some district (Kab.Malinau, Kab. Kutai Barat, Kab. Kutai Timur, Kab. Penajam Paser Utara) in Kalimantan Timur. |
February 21, 2024 | Refactor code (will be updated in future). |
Support
Contact me at donyahmd24@gmail.com.