2017 © Pedro Peláez
 

library mobile

Validates mobile numbers in Iran

image

persian-validator/mobile

Validates mobile numbers in Iran

  • Monday, July 2, 2018
  • by Ali-kh333
  • Repository
  • 1 Watchers
  • 1 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Persian Mobile Validator

A simple class to validate mobile numbers in Iran., (*1)

Install

Via Composer, (*2)

$ composer require persian-validator/mobile

Usage

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)

The Versions

02/07 2018

dev-master

9999999-dev

Validates mobile numbers in Iran

  Sources   Download

MIT

by Ali Khalili

laravel validator mobile

01/07 2018

1.0.0

1.0.0.0

Validates mobile numbers in Iran

  Sources   Download

MIT

by Ali Khalili

laravel validator mobile