Download the PHP package zerosdev/nik-reader without Composer
On this page you can find all versions of the php package zerosdev/nik-reader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zerosdev/nik-reader
More information about zerosdev/nik-reader
Files in zerosdev/nik-reader
Download zerosdev/nik-reader
More information about zerosdev/nik-reader
Files in zerosdev/nik-reader
Vendor zerosdev
Package nik-reader
Short Description Identity data reader based on NIK (Nomor Induk Kependudukan)
License MIT
Homepage https://github.com/zerosdev/nik-reader
Package nik-reader
Short Description Identity data reader based on NIK (Nomor Induk Kependudukan)
License MIT
Homepage https://github.com/zerosdev/nik-reader
Please rate this library. Is it a good library?
Informations about the package nik-reader
NIK Reader
Identity data reader based on NIK (Nomor Induk Kependudukan)
About
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. Here is the example result :
Installation
- Run command
composer require zerosdev/nik-reader
Usage
Laravel
Non-Laravel
Reading Multiple NIKs
When reading multiple NIKs, you have two options:
Option 1: Using the same instance (recommended)
Available Methods
| Method | Description |
|---|---|
| read() | Start reading NIK number |
| valid() | Check wether NIK is valid or not |
| setDatabase() | Load database file |
| getProvince() | Get province data |
| getCity() | Get city data |
| getSubdistrict() | Get subdistrict data |
| getPostalCode() | Get postal code data |
| getDateOfBirth() | Get date of birth data |
| getAge() | Get age data |
| getZodiac() | Get zodiac data |
| getGender() | Get gender data |
| getUniqueCode() | Get unique code |
| toArray() | Convert result into Array format |
| toJSON() | Convert result into JSON format |
All versions of nik-reader with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2|^8.0
ext-json Version *
ext-json Version *
The package zerosdev/nik-reader contains the following files
Loading the files please wait ...