PHPackages                             smart-twists/iranian-information-validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. smart-twists/iranian-information-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

smart-twists/iranian-information-validator
==========================================

Additional Iranian Information Validator Functions for the Laravel Framework

2.0.2(5y ago)54431MITPHPPHP ^7.2.5

Since May 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/saeedsajadi/iranian-information-validation)[ Packagist](https://packagist.org/packages/smart-twists/iranian-information-validator)[ RSS](/packages/smart-twists-iranian-information-validator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Iranian Information Validation Class
====================================

[](#iranian-information-validation-class)

Extension for the Laravel validation class

Installation
------------

[](#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
------------------

[](#usage-with-laravel)

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

### iban

[](#iban)

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

### creditcard

[](#creditcard)

The given field must be a valid creditcard number.

### isbn

[](#isbn)

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

### isodate

[](#isodate)

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

### nationalcode

[](#nationalcode)

The field under validation must be a valid national code.

### ir\_mobile

[](#ir_mobile)

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

### ir\_phone

[](#ir_phone)

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

### zipcode

[](#zipcode)

The field under validation must be a valid zip code.

Changing the error messages:
----------------------------

[](#changing-the-error-messages)

Add the corresponding key to `/resources/lang//validation.php` like this:

```
// example
'iban' => 'Please enter IBAN number!',

```

Or add your custom messages directly to the validator like [described in the docs](http://laravel.com/docs/5.1/validation#custom-error-messages).

Usage outside of Laravel
------------------------

[](#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
-------

[](#license)

Intervention Validation Class is licensed under the [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~347 days

Total

5

Last Release

1954d ago

Major Versions

1.0.1 → 2.0.02020-05-08

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.0PHP ^7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/a70f9e6c805f1d1f96240fda662d21dd055a3e514754c4500a3220f2ca4b8bf0?d=identicon)[saeedsajadi](/maintainers/saeedsajadi)

---

Top Contributors

[![saeedsajadi](https://avatars.githubusercontent.com/u/3465334?v=4)](https://github.com/saeedsajadi "saeedsajadi (11 commits)")

---

Tags

bankcodecode-melicredit-cardcreditcardibaniranianisbnlaravelmelisnationalnational-codevalidationvalidatorlaravelvalidatorvalidationcodephonemobilecreditcardBankzip codecode\_mellinational codezipcodecredit-cardIBANISBNISINMelimelliKDcode meliکد ملیisodatenationalcodeشماره ملیشماره کارتکد پستیشباملیکارتشمارهموبایلتلفن ثابت

### Embed Badge

![Health badge](/badges/smart-twists-iranian-information-validator/health.svg)

```
[![Health](https://phpackages.com/badges/smart-twists-iranian-information-validator/health.svg)](https://phpackages.com/packages/smart-twists-iranian-information-validator)
```

###  Alternatives

[intervention/validation

Additional validation rules for the Laravel framework

6777.1M18](/packages/intervention-validation)[ronanguilloux/isocodes

PHP library - Validators for standards from ISO, International Finance, Public Administrations, GS1, Book and Music Industries, Phone numbers &amp; Zipcodes for many countries

8043.4M26](/packages/ronanguilloux-isocodes)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2422.3M6](/packages/laravel-validation-rules-credit-card)[barbieswimcrew/zip-code-validator

Constraint class for international zipcode validation

772.4M](/packages/barbieswimcrew-zip-code-validator)[iamfarhad/validation

🇮🇷 Complete Laravel Persian validation package - Iranian national ID, mobile numbers, Shamsi dates, IBAN/Sheba, postal codes &amp; more. Modern Laravel 10-13 support with both ValidationRule objects &amp; string-based rules.

3017.3k](/packages/iamfarhad-validation)[stuyam/laravel-phone-validator

A phone validator for Laravel using the free Twilio phone lookup service.

2861.7k](/packages/stuyam-laravel-phone-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
