Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 573 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 573 Bytes

nik-validator

NIK Validator is a package to convert Indonesian citizenship identity number into usefull information. You just call the parse method and input NIK number in the parameter, then you will get the informations (without internet connection).

Usage

  • Installation
composer require irsyadulibad/nik-validator
  • Example
<?php
use Irsyadulibad\NIKValidator\Generator;
use Irsyadulibad\NIKValidator\Validator;

$nik = (new Generator())->generate();
$parsed = Validator::set($nik)->parse();

if($parsed->valid) {
    var_dump($parsed);
}