PHP code example of turahe / number-validator

1. Go to this page and download the library: Download turahe/number-validator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

turahe / number-validator example snippets



use Turahe\Validator\NIK;

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

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