02/07
2018
Validates mobile numbers in Iran
A simple class to validate mobile numbers in Iran., (*1)
Via Composer, (*2)
$ composer require persian-validator/mobile
Instantiate the class, (*3)
$mobile = Mobile::make('0912000000');
Returns Boolean, (*4)
$mobile->isValid();
Returns Boolean, (*5)
$mobile->notValid();
Retruns Boolean, (*6)
$moile->isIrancell();
Reruns the operator for the number, (*7)
$mobile->operator();
If it's Hamrah aval, it returns the province for it. like Tehran, Isfahan ..., (*8)
$mobile->province();
If mobile is valid returns nothing but if it's not valid Exception is thrown!, (*9)
$mobile->validate();
License This library is released under the MIT license., (*10)