Additional Iranian Information Validator Functions for the Laravel Framework
smart-twists/iranian-information-validator is a Laravel package for additional iranian information validator functions for the laravel framework.
It currently has 5 GitHub stars and 443 downloads on Packagist (latest version 2.0.2).
Install it with composer require smart-twists/iranian-information-validator.
Discover more Laravel packages by smart-twists
or browse all Laravel packages to compare alternatives.
Last updated
Extension for the Laravel validation class
You can install this package quick and easy with Composer.
Require the package via Composer:
$ composer require smart-twists/iranian-information-validator
The Validation class is built to work with the Laravel Framework. The integration is done in seconds.
Open your Laravel config file config/app.php and add service provider in the $providers array:
'providers' => array(
...
SmartTwists\IranianInformationValidation\ValidationServiceProvider::class,
),
The installed package provides the following additional validation rules including their error messages.
Checks for a valid International Bank Account Number (IBAN).
The given field must be a valid creditcard number.
The field under validation must be a valid International Standard Book Number (ISBN).
The field under validation must be a valid date in ISO 8601 format.
The field under validation must be a valid national code.
The field under validation must be a valid iranian mobile number.
The field under validation must be a valid iranian phone number.
The field under validation must be a valid zip code.
Add the corresponding key to /resources/lang/<language>/validation.php like this:
// example
'iban' => 'Please enter IBAN number!',
Or add your custom messages directly to the validator like described in the docs.
Intervention Validation Class is licensed under the MIT License.