donyahmd/ktp-parser
最新稳定版本:v1.0.0
Composer 安装命令:
composer require donyahmd/ktp-parser
包简介
Check National Identity Number to Identity gender, birth of date, and region in Indonesia
README 文档
README
Check National Identity Number to Identity gender, birth of date, and region in Indonesia.
Installation
composer require donyahmd/ktp-parser
Usage
<?php use Donyahmd\Ktp\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": "6408",
"name": "KAB. KUTAI TIMUR"
},
"district": {
"code": "640813",
"name": "TELUK PANDAN"
},
"date_of_birth": "25-11-1996",
"gender": 1 // 0 for female and 1 for 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). |
| September 12, 2024 | Using CSV data for reading regencies. |
Support
Contact me at hi@doniahmad.com.
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-12