|
16 | 16 | This library gives you a way to convert the NIK number into useful information such as: Region name (province, city, sub-district), date of birth, gender, zodiac, age, and more. This can also be used to validate whether the NIK number is valid or not.
|
17 | 17 | Here is the example result :
|
18 | 18 |
|
19 |
| -| Name | Type | Example Value | |
20 |
| -|----------------|-------------|--------------------------------------------- |
21 |
| -| valid | Boolean | true | |
22 |
| -| nik | String | 3502204101910001 | |
23 |
| -| province_id | String/Null | 35 | |
24 |
| -| province | String/Null | JAWA TIMUR | |
25 |
| -| city_id | String/Null | 02 | |
26 |
| -| city | String/Null | KAB. PONOROGO | |
27 |
| -| subdistrict_id | String/Null | 20 | |
28 |
| -| subdistrict | String/Null | JAMBON | |
29 |
| -| postal_code | String/Null | 63456 | |
30 |
| -| born_date | String/Null | 01-01-1991 | |
31 |
| -| age | Array | ['year' => 30, 'month' => '9', 'day' => 6] | |
32 |
| -| zodiac | String/Null | Capricorn | |
33 |
| -| gender | String/Null | female | |
34 |
| -| unique_code | String/Null | 0001 | |
| 19 | +```json |
| 20 | +{ |
| 21 | + "valid": true, |
| 22 | + "nik": "3502200101000001", |
| 23 | + "province_id": "35", |
| 24 | + "province": "JAWA TIMUR", |
| 25 | + "city_id": "3502", |
| 26 | + "city": "KAB. PONOROGO", |
| 27 | + "subdistrict_id": "350220", |
| 28 | + "subdistrict": "JAMBON", |
| 29 | + "postal_code": "63456", |
| 30 | + "birthday": "01-01-2000", |
| 31 | + "age": |
| 32 | + { |
| 33 | + "year": 21, |
| 34 | + "month": 9, |
| 35 | + "day": 25 |
| 36 | + }, |
| 37 | + "zodiac": "Capricorn", |
| 38 | + "gender": "male", |
| 39 | + "unique_code": "0001" |
| 40 | +} |
| 41 | +``` |
35 | 42 |
|
36 | 43 | ## Installation
|
37 | 44 |
|
|
0 commit comments