turahe / number-validator
identification number validator
v1.0.0
2024-09-10 09:12 UTC
Requires
- php: ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.38
- phpunit/phpunit: ^10.1|^11,0
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); }