Iban is a PHP package for parsing, validating, and extracting bank details from IBANs with ease and accuracy. Simplify financial data handling in your applications.

v1.0.2 2025-01-26 18:08 UTC

This package is not auto-updated.

Last update: 2025-07-13 20:18:03 UTC


README

PHP IBAN

GitHub Workflow Status (main) Total Downloads Latest Version License

This package provides a powerful and easy-to-use PHP IBAN utility for parsing, validating, and extracting bank details from IBANs.

Requires PHP 8.0+

Installation

Install the package using Composer:

composer require ilyasmohetna/iban

Features

  • ✅ Parse IBANs into structured components.
  • ✅ Validate IBAN structure and checksum.
  • ✅ Auto-detect bank details from IBANs.

Supported Countries

Flag Country IBAN Validation IBAN Parser Data Auto Bank Detection
Andorra Andorra
United Arab Emirates United Arab Emirates
Albania Albania
Austria Austria
Azerbaijan Azerbaijan
Bosnia and Herzegovina Bosnia and Herzegovina
Belgium Belgium
Bulgaria Bulgaria
Bahrain Bahrain
Burundi Burundi
Brazil Brazil
Republic of Belarus Republic of Belarus
Switzerland Switzerland
Costa Rica Costa Rica
Cyprus Cyprus
Czechia Czechia
Germany Germany
Djibouti Djibouti
Denmark Denmark
Dominican Republic Dominican Republic
Estonia Estonia
Egypt Egypt
Spain Spain
Finland Finland
Falkland Islands Falkland Islands
Faroe Islands Faroe Islands
France France
United Kingdom United Kingdom
Georgia Georgia
Gibraltar Gibraltar
Greenland Greenland
Greece Greece
Guatemala Guatemala
Croatia Croatia
Hungary Hungary
Ireland Ireland
Israel Israel
Iraq Iraq
Iceland Iceland
Italy Italy
Jordan Jordan
Kuwait Kuwait
Kazakhstan Kazakhstan
Lebanon Lebanon
Saint Lucia Saint Lucia
Liechtenstein Liechtenstein
Lithuania Lithuania
Luxembourg Luxembourg
Latvia Latvia
Libya Libya
Monaco Monaco
Moldova Moldova
Montenegro Montenegro
Macedonia Macedonia
Mongolia Mongolia
Mauritania Mauritania
Malta Malta
Mauritius Mauritius
Nicaragua Nicaragua
Netherlands Netherlands
Norway Norway
Pakistan Pakistan
Oman Oman
Poland Poland
Palestine, State of Palestine, State of
Portugal Portugal
Qatar Qatar
Romania Romania
Serbia Serbia
Russia Russia
Saudi Arabia Saudi Arabia
Seychelles Seychelles
Sudan Sudan
Sweden Sweden
Slovenia Slovenia
Slovakia Slovakia
San Marino San Marino
Somalia Somalia
Sao Tome and Principe Sao Tome and Principe
El Salvador El Salvador
Timor-Leste Timor-Leste
Tunisia Tunisia
Turkey Turkey
Ukraine Ukraine
Vatican City State Vatican City State
Virgin Islands Virgin Islands
Kosovo Kosovo

Usage

Validate an IBAN

Parse an IBAN

Development

Run Code Quality Tools

🧹 Keep a modern codebase with Pint:

composer lint

✅ Run refactors using Rector:

composer refacto

⚗️ Run static analysis using PHPStan:

composer test:types

✅ Run unit tests using PEST:

composer test:unit

🚀 Run the entire test suite:

composer test

PHP IBAN was created by Ilyas Mohetna under the MIT license.