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

ActiveLibrary

marshmallow/iban
================

With this package you will be able to check iban numbers and get BIC information.

v1.2.3(5y ago)061[1 PRs](https://github.com/marshmallow-packages/iban/pulls)MITPHPPHP ^7.0|^8.0CI passing

Since Apr 3Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/marshmallow-packages/iban)[ Packagist](https://packagist.org/packages/marshmallow/iban)[ Docs](https://github.com/Marshmallow-Development/)[ RSS](/packages/marshmallow-iban/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (4)Used By (0)

 [![](https://camo.githubusercontent.com/329958cb02b7bee461fd9dcae7a0a3a34e6595669116ff441ad5ef9e77bc511c/68747470733a2f2f63646e2e6d617273686d616c6c6f772d6f66666963652e636f6d2f6d656469612f696d616765732f6c6f676f2f6d617273686d616c6c6f772e7472616e73706172656e742e7265642e706e67)](https://camo.githubusercontent.com/329958cb02b7bee461fd9dcae7a0a3a34e6595669116ff441ad5ef9e77bc511c/68747470733a2f2f63646e2e6d617273686d616c6c6f772d6f66666963652e636f6d2f6d656469612f696d616765732f6c6f676f2f6d617273686d616c6c6f772e7472616e73706172656e742e7265642e706e67)

 [ ![Issues](https://camo.githubusercontent.com/a481662a219e4312c09bc496bbbff4a654135ed06e5e871d2d6ac6bd0a011ac4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4d617273686d616c6c6f772d446576656c6f706d656e742f7061636b6167652d6962616e2e737667) ](https://github.com/Marshmallow-Development) [ ![Forks](https://camo.githubusercontent.com/a94db0aa7ffc6a63dfc12e05de480e1183706d384b54c31cb05fbda40461dd62/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f4d617273686d616c6c6f772d446576656c6f706d656e742f7061636b6167652d6962616e2e737667) ](https://github.com/Marshmallow-Development) [ ![Stars](https://camo.githubusercontent.com/6c71507150434e2d453b99b39e92665e13d0f18299d6581fa11f610a8b34bfe7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4d617273686d616c6c6f772d446576656c6f706d656e742f7061636b6167652d6962616e2e737667) ](https://github.com/Marshmallow-Development) [ ![License](https://camo.githubusercontent.com/b95a7faf8e0ca271e024f1b5bb236730853c03ae5db12cf318b3c634c9e2d3ec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4d617273686d616c6c6f772d446576656c6f706d656e742f7061636b6167652d6962616e2e737667) ](https://github.com/Marshmallow-Development)

IBAN
====

[](#iban)

Package to validate IBAN and get BIC information.

### Installing

[](#installing)

```
composer require marshmallow/iban

```

### Validate IBAN

[](#validate-iban)

Call `\Marshmallow\IBAN\IBAN::validate($iban)` to check if the provided iban is valid. This function will return `true|false`.

### Get account number

[](#get-account-number)

Call `\Marshmallow\IBAN\IBAN::getBankAccount($iban)` to get the bank account number. If the IBAN is not valid, it will return `null`.

### Get BIC from IBAN

[](#get-bic-from-iban)

Call `\Marshmallow\IBAN\IBAN::getBic($iban)` to get the BIC code for this iban number. An `array` will be returned if we can match it. If not, `null` will be returned.

```
[
    "bic" => "RABONL2U"
    "identifier" => "RABO"
    "name" => "RABOBANK"
    "iban" => "NL93RABO0317745646"
    "account_number" => "317745646"
]

```

Tests during development
------------------------

[](#tests-during-development)

`php artisan test packages/marshmallow/iban`

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance48

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 88.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 ~368 days

Total

2

Last Release

1864d ago

PHP version history (2 changes)v1.2.2PHP &gt;=7.0.0

v1.2.3PHP ^7.0|^8.0

### Community

Maintainers

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

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

IBANBICmarshmallow

### Embed Badge

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

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

###  Alternatives

[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/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

8013.3M23](/packages/ronanguilloux-isocodes)[abcaeffchen/sepa-utilities

SepaUtilities provides useful methods for validating and sanitizing inputs used in SEPA files supporting PHP &gt;= 8.1.

312.0M2](/packages/abcaeffchen-sepa-utilities)[jschaedl/iban-validation

A small library for validating International BankAccount Numbers (IBANs).

1022.8M16](/packages/jschaedl-iban-validation)[cmpayments/iban

IBAN utility library

34364.7k5](/packages/cmpayments-iban)

PHPackages © 2026

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