turahe/number-validator

identification number validator

v1.0.0 2024-09-10 09:12 UTC

This package is auto-updated.

Last update: 2024-12-10 09:47:15 UTC


README

Validator is a package to convert identity number into usefully 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 turahe/number-validator
  • Example
<?php
use Turahe\Validator\NIK;

$parsed = NIK::set('35090xxxxxxxxxx')->parse();

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