New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

smart-twists/iranian-information-validator

Additional Iranian Information Validator Functions for the Laravel Framework
445 5

Larablocks Analysis

smart-twists/iranian-information-validator works with any PHP project: the latest release (2.0.2, Feb 21, 2021) doesn't depend on Laravel.

Laravel 4, 5 and 7 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Feb 21, 2021)
  • 2 downloads a month (needs 10,000)
  • 5 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Feb 21, 2021.
  • No releases in the last 12 months.
  • First released: May 3, 2017.
  • Monthly downloads: 2.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require smart-twists/iranian-information-validator
Latest Version:2.0.2
PHP:^7.2.5
Older releases:4 · 5 · 7
License:MIT
Last Updated:Feb 21, 2021
Links: GitHub  ·  Packagist
Maintainer: saeedsajadi

Iranian Information Validation Class

Extension for the Laravel validation class

Installation

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,

),

Usage with Laravel

The installed package provides the following additional validation rules including their error messages.

iban

Checks for a valid International Bank Account Number (IBAN).

creditcard

The given field must be a valid creditcard number.

isbn

The field under validation must be a valid International Standard Book Number (ISBN).

isodate

The field under validation must be a valid date in ISO 8601 format.

nationalcode

The field under validation must be a valid national code.

ir_mobile

The field under validation must be a valid iranian mobile number.

ir_phone

The field under validation must be a valid iranian phone number.

zipcode

The field under validation must be a valid zip code.

Changing the error messages:

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.

Usage outside of Laravel

  • Validator::isIban - Checks if given value is valid International Bank Account Number (IBAN).
  • Validator::isCreditcard - Checks if value is valid creditcard number.
  • Validator::isIsbn - Checks if given value is valid International Standard Book Number (ISBN).
  • Validator::isIsodate - Checks if given value is date in ISO 8601 format.
  • Validator::isNationalcode - checks if given value is valid national code.
  • Validator::isIrMobile - checks if given value is valid Iranian mobile number.
  • Validator::isIrPhone - checks if given value is valid Iranian phone number.
  • Validator::isZipcode - checks if given value is valid zip cide.

License

Intervention Validation Class is licensed under the MIT License.

Alternatives to smart-twists/iranian-information-validator

propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

50,357,851 3,040
intervention/validation

Additional validation rules for the Laravel framework

8,279,057 677
axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel

4,332,490 391
laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2,706,723 246
barbieswimcrew/zip-code-validator

Constraint class for international zipcode validation

2,836,165 77

Version History

Version Released PHP Laravel License
2.0.2 ^7.2.5 MIT
2.0.1 ^7.2.5 MIT
2.0.0 ^7.2.5 ^7.0 MIT
1.0.1 >=5.3.0 ~4|~5 MIT
1.0.0 >=5.3.0 ~4|~5 MIT