Skip to content

Commit 084d99e

Browse files
authored
Update README.md
1 parent cb6fc4d commit 084d99e

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

README.md

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,29 @@
1616
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.
1717
Here is the example result :
1818

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+
```
3542

3643
## Installation
3744

0 commit comments

Comments
 (0)