PHPackages                             tpweb/iban - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tpweb/iban

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tpweb/iban
==========

PHP Iban &amp; Bic Library

1.2.0(5y ago)2973LGPLPHP &gt;=7.2

Since Jun 1Compare

[ Source](https://github.com/TPWeb/iban)[ Packagist](https://packagist.org/packages/tpweb/iban)[ Docs](http://www.tpweb.org/my-projects/php-iban/)[ RSS](/packages/tpweb-iban/feed)WikiDiscussions Synced 2d ago

READMEChangelog (5)Dependencies (5)Versions (7)Used By (0)

PHP IBAN &amp; BIC Library
==========================

[](#php-iban--bic-library)

[![Build Status](https://camo.githubusercontent.com/6954362a01f81f1848eebf385b2ded2614f4e9aeae3d699b69c5a00e1957d4b8/68747470733a2f2f7472617669732d63692e6f72672f54505765622f6962616e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/TPWeb/iban)[![Coverage Status](https://camo.githubusercontent.com/d9cba910eaea5ccca9e710f06495e94e4bb41ab7aeb8d32ab994290f17abc3b4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f54505765622f6962616e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/TPWeb/iban?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/5e254e91c8bca06669d9df31ac0b8ccd37a35ad7ce783b0305d2561035e9ad9f/68747470733a2f2f706f7365722e707567782e6f72672f74707765622f6962616e2f762f737461626c652e737667)](https://packagist.org/packages/tpweb/iban)[![Latest Unstable Version](https://camo.githubusercontent.com/4a3362a4ebf6c02bc0abaa90173c2c8d12bfb7b79e93800d3e2bb25e4549b643/68747470733a2f2f706f7365722e707567782e6f72672f74707765622f6962616e2f762f756e737461626c652e737667)](https://packagist.org/packages/tpweb/iban)[![Total Downloads](https://camo.githubusercontent.com/f88773dab7a7a77ef0f8b96d3aee3c2bb4c8a2b55ca0bdfb6f82ffdd9ecd797e/68747470733a2f2f706f7365722e707567782e6f72672f74707765622f6962616e2f642f746f74616c2e737667)](https://packagist.org/packages/tpweb/iban)[![License](https://camo.githubusercontent.com/23b9f9163c1708a8702f05de48a00b293d6e786cef9dbc803a16bdbad67120a2/68747470733a2f2f706f7365722e707567782e6f72672f74707765622f6962616e2f6c6963656e73652e737667)](https://packagist.org/packages/tpweb/iban)

\#Installation

Require this package in your `composer.json` and update composer.

```
"tpweb/iban": "~1.*"
```

After updating composer, add the ServiceProvider to the providers array in `config/app.php`

```
TPWeb\Iban\IbanServiceProvider::class,
```

You can use the facade for shorter code. Add this to your aliases:

```
'Iban' => TPWeb\Iban\IbanFacade::class,
```

Documentation
=============

[](#documentation)

Validation
----------

[](#validation)

```
$ibannr = "BE....";
$iban = new Iban($ibannr);
if($iban->isIbanValid()) {
    echo "IBAN is valid";
}
```

### Laraval validator

[](#laraval-validator)

```
public function store(Request $request) {
    $this->validate($request, ['ibannumber' => 'required|iban', 'bicnumber' => 'required|bic']);
}
```

Calculation (Only BE en NL)
---------------------------

[](#calculation-only-be-en-nl)

```
$ibannr = "BE....";
$iban = new Iban($ibannr);
$bic = $iban->calculateBic();
```

The complete documentation can be found at:

Countries Supported
===================

[](#countries-supported)

The following 99 official and *unofficial* IBAN countries are supported.

- Albania (AL)
- *Algeria* (DZ)
- Andorra (AD)
- *Angola* (AO)
- Austria (AT)
- Azerbaijan (AZ)
- Bahrain (BH)
- Belgium (BE)
- *Benin* (BJ)
- Bosnia and Herzegovina (BA)
- Brazil (BR)
- British Virgin Islands (VG)
- Bulgaria (BG)
- *Burkina Faso* (BF)
- *Burundi* (BI)
- *Cameroon* (CM)
- *Cape Verde* (CV)
- Costa Rica (CR)
- *Côte d'Ivoire* (CI)
- Croatia (HR)
- Cyprus (CY)
- Czech Republic (CZ)
- Denmark (DK)
- Faroe Islands (FO)
- Greenland (GL)
- Dominican Republic (DO)
- Estonia (EE)
- Finland (FI)
- Åland Islands (AX)
- France (FR)
- French Guiana (GF)
- French Polynesia (PF)
- French Southern Territories (TF)
- Guadelope (GP)
- Martinique (MQ)
- Mayotte (YT)
- New Caledonia (NC)
- Réunion (RE)
- Saint Barhélemy (BL)
- Saint Martin (French Part) (MF)
- Saint-Pierre and Miquelon (PM)
- Wallis and Futuna (WF)
- Georgia (GE)
- Germany (DE)
- Gibraltar (GI)
- Greece (GR)
- Guatemala (GT)
- Hungary (HU)
- Iceland (IS)
- *IIBAN (Internet)* (AA)
- *Iran* (IR)
- Ireland (IE)
- Israel (IL)
- Italy (IT)
- Jordan (JO)
- Kazakhstan (KZ)
- Kosovo (XK)
- Kuwait (KW)
- Latvia (LV)
- Lebanon (LB)
- Liechtenstein (LI)
- Lithuania (LT)
- Luxembourg (LU)
- Macedonia (MK)
- *Madagascar* (MG)
- *Mali* (ML)
- Malta (MT)
- Mauritania (MR)
- Mauritius (MU)
- Moldova (MD)
- Monaco (MC)
- Montenegro (ME)
- *Mozambique* (MZ)
- Netherlands (NL)
- Norway (NO)
- Pakistan (PK)
- Palestine (PS)
- Poland (PL)
- Portugal (PT)
- Qatar (QA)
- Romania (RO)
- Saint Lucia (LC)
- San Marino (SM)
- São Tomé and Príncipe (ST)
- Saudi Arabia (SA)
- *Senegal* (SN)
- Serbia (RS)
- Seychelles (SC)
- Slovakia (SK)
- Slovenia (SI)
- Spain (ES)
- Sweden (SE)
- Switzerland (CH)
- Timor-Leste (TL)
- Tunisia (TN)
- Turkey (TR)
- *Ukraine* (UA)
- United Arab Emirates (AE)
- United Kingdom (GB)

Support
=======

[](#support)

Support github or mail:

Contributing
============

[](#contributing)

Please try to follow the psr-2 coding style guide. t

License
=======

[](#license)

This package is licensed under LGPL. You are free to use it in personal and commercial projects. The code can be forked and modified, but the original copyright author should always be included!

###  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 63.9% 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 ~317 days

Recently: every ~396 days

Total

6

Last Release

2099d ago

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

1.2.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6589788?v=4)[TPWeb](/maintainers/tpweb)[@TPWeb](https://github.com/TPWeb)

---

Top Contributors

[![TPWeb](https://avatars.githubusercontent.com/u/6589788?v=4)](https://github.com/TPWeb "TPWeb (23 commits)")[![madeITBelgium](https://avatars.githubusercontent.com/u/20304892?v=4)](https://github.com/madeITBelgium "madeITBelgium (13 commits)")

---

Tags

IBANBIC

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M277](/packages/illuminate-pipeline)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.6M369](/packages/illuminate-redis)

PHPackages © 2026

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