02/07
2018
Validates national codes in Iran
A simple class to validate national codes in Iran., (*1)
Via Composer, (*2)
$ composer require persian-validator/national-code
Instantiate the class, (*3)
$nationalCode = NationalCode::make('123456789');
Returns Boolean, (*4)
$nationalCode->isValid();
Returns Boolean, (*5)
$nationalCode->notValid();
If national code is valid returns nothing but if it's not valid Exception is thrown!, (*6)
$nationalCode->validate();
License This library is released under the MIT license., (*7)