turahe / validator
identification number validator
dev-main
2023-11-20 07:04 UTC
Requires
- php: ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.38
- phpunit/phpunit: ^10.1
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); }