turahe/validator

identification number validator

dev-main 2023-11-20 07:04 UTC

This package is auto-updated.

Last update: 2024-04-20 08:46:22 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);
}