2017 © Pedro Peláez
 

library national-code

Validates national codes in Iran

image

persian-validator/national-code

Validates national codes in Iran

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

The README.md

Persian National Code Validator

A simple class to validate national codes in Iran., (*1)

Install

Via Composer, (*2)

$ composer require persian-validator/national-code

Usage

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)

The Versions

02/07 2018

dev-master

9999999-dev

Validates national codes in Iran

  Sources   Download

MIT

by Ali Khalili

laravel validator nationalcode

01/07 2018

1.0.0

1.0.0.0

Validates national codes in Iran

  Sources   Download

MIT

by Ali Khalili

laravel validator nationalcode