PHPackages                             nembie/iban-rule - 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. nembie/iban-rule

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

nembie/iban-rule
================

A Laravel validation rule to validate IBAN numbers

2.0.0(3mo ago)999.3k↓20.2%3MITPHPPHP ^8.2

Since Apr 15Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Nembie/iban-rule)[ Packagist](https://packagist.org/packages/nembie/iban-rule)[ Docs](https://github.com/Nembie/iban-rule)[ RSS](/packages/nembie-iban-rule/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (7)Used By (0)

🏦 IBAN Validation Rule for Laravel
----------------------------------

[](#-iban-validation-rule-for-laravel)

[![GitHub](https://camo.githubusercontent.com/f411b1ebead1393c7649c9856d6fb2910c06313ca99c9e0471ffb9e085b1c055/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4e656d6269652f6962616e2d72756c653f7374796c653d666c61742d737175617265)](LICENSE)[![GitHub issues](https://camo.githubusercontent.com/188612631e142cad5ba87dfc416154f1c032ee358744a3c7497b973c623b6c76/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4e656d6269652f6962616e2d72756c653f7374796c653d666c61742d737175617265)](Issues)[![Packagist Downloads](https://camo.githubusercontent.com/75ad41f2371525add8e549e597c98dd4e0971414167bb75a100f4856c8fcdd7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4e656d6269652f6962616e2d72756c653f7374796c653d666c61742d737175617265)](Downloads)[![GitHub Release](https://camo.githubusercontent.com/406a3ebdef1658f83e12a8d97def55f45dd8650cbf306250e56a29779d63b6cf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f4e656d6269652f6962616e2d72756c653f7374796c653d666c61742d737175617265)](Release)

This package provides a custom validation rule for Laravel to validate International Bank Account Numbers (IBANs). It uses the validation rules defined by the Single Euro Payments Area (SEPA) and other non-SEPA countries to ensure that the given IBAN is valid.

### 🧰 Requirements

[](#-requirements)

- `PHP >= 8.2`
- `Laravel >= 10`

### ⚙️ Installation

[](#️-installation)

You can install this package using Composer:

`composer require nembie/iban-rule`

### 👾 Usage

[](#-usage)

To use the IBAN validation rule, simply add it to your Laravel validation rules. Here's an example:

```
use Illuminate\Http\Request;
use Nembie\IbanRule\ValidIban;

public function store(Request $request)
{
    $request->validate([
        'iban' => ['required', new ValidIban()],
    ]);

    // The rest of your code
}
```

### 👽 Customize error message

[](#-customize-error-message)

You can use your own validation message (by default will be `The :attribute is not a valid IBAN.`).

> ⚠️ **If you don't have these folders** use `php artisan lang:publish`

Simply:

```
# Path
\main_folder_project
    \lang
        \app_language(ex.'en')
            validation.php

# Add 'iban' key
 'IBAN non valido.'

# Now you're validation message will be translated!
```

### 🔐 Validation Rules

[](#-validation-rules)

This package uses the validation rules defined by the Single Euro Payments Area (SEPA) and other non-SEPA countries to ensure that the given IBAN is valid. The validation rules are loaded from a `countries.json` file that is included in this package.

### 🤝 Contribution

[](#-contribution)

If you find any issues or have suggestions for improvements, feel free to open a pull request or issue. Your contribution is highly appreciated.

### 🌍 Supported countries

[](#-supported-countries)

[Full list of supported countries](https://github.com/Nembie/nova-iban-field/blob/master/COUNTRIES.md)

### 🔨 Test

[](#-test)

`composer test`

### 📝 License

[](#-license)

This package is open-sourced software licensed under the [MIT license](https://github.com/Nembie/iban-rule/blob/main/LICENSE.md).

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance81

Actively maintained with recent releases

Popularity40

Moderate usage in the ecosystem

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 96.2% 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 ~257 days

Total

5

Last Release

101d ago

Major Versions

1.0.3 → 2.0.02026-02-07

PHP version history (3 changes)1.0.0PHP ^8.0

1.0.2PHP ^8.1

2.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![Nembie](https://avatars.githubusercontent.com/u/47114030?v=4)](https://github.com/Nembie "Nembie (25 commits)")[![SineMah](https://avatars.githubusercontent.com/u/8180962?v=4)](https://github.com/SineMah "SineMah (1 commits)")

---

Tags

bankingfinanceibanlaravellaravel-frameworkphprulerulesvalidationlaravelvalidationruleNembieiban-rule

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nembie-iban-rule/health.svg)

```
[![Health](https://phpackages.com/badges/nembie-iban-rule/health.svg)](https://phpackages.com/packages/nembie-iban-rule)
```

###  Alternatives

[propaganistas/laravel-phone

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

3.0k35.7M107](/packages/propaganistas-laravel-phone)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

759569.4k13](/packages/wendelladriel-laravel-validated-dto)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)

PHPackages © 2026

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