PHPackages                             mogelijk-technologies/iban-to-bic - 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. mogelijk-technologies/iban-to-bic

ActiveLibrary

mogelijk-technologies/iban-to-bic
=================================

IBAN to BIC PHP

v1.3.0(1y ago)16.6k↓37.5%[3 PRs](https://github.com/Mogelijk-Technologies/iban-to-bic/pulls)JavaScriptPHP ^7.4 || ^8.0CI passing

Since Sep 20Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/Mogelijk-Technologies/iban-to-bic)[ Packagist](https://packagist.org/packages/mogelijk-technologies/iban-to-bic)[ RSS](/packages/mogelijk-technologies-iban-to-bic/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

iban-to-bic
===========

[](#iban-to-bic)

[![GitHub license](https://camo.githubusercontent.com/31f7f781a51c49e381ce3c66d13fd1d7952003d9b13b39ff74b761a63c9e16b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736967616c6f722f6962616e2d746f2d626963)](https://github.com/sigalor/iban-to-bic/blob/master/LICENSE) [![npm](https://camo.githubusercontent.com/abddfae34ad3ea3bbc390b98a068b9f2d85e1972d941056b3b9d926320fa76e6/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f6962616e2d746f2d626963)](https://www.npmjs.com/package/iban-to-bic) [![Unit tests workflow status](https://github.com/sigalor/iban-to-bic/actions/workflows/tests.yaml/badge.svg)](https://github.com/sigalor/iban-to-bic/actions/workflows/tests.yaml)

Determines the SWIFT BIC of an IBAN. Currently supports IBANs from the following countries: Austria, Belgium, Germany, Luxembourg, Netherlands, Spain, France.

Usage
-----

[](#usage)

```
const { ibanToBic } = require('iban-to-bic');

const bic = ibanToBic('DE51500105179975341634');
// bic is now "INGDDEFFXXX"
```

`ibanToBic` returns undefined if the IBAN is invalid (checked internally using [ibantools](https://github.com/Simplify/ibantools)) or if no corresponding BIC was found.

Usage in PHP
------------

[](#usage-in-php)

```
use Mogelijk\IbanToBic;

$bic = (new IbanToBic())->ibanToBic('DE51500105179975341634');
// $bic is now "INGDDEFFXXX"
```

Usage in the browser
--------------------

[](#usage-in-the-browser)

iban-to-bic is really simple to use inside a browser. You can either pull the package from npm and build it with your favorite packaging tool or you can use it from a CDN like this:

```

```

Or

```

```

And then invoke it like this:

```

	window.ibanToBic.ibanToBic('********');

```

Using this code makes it super comfortable to validate user input and provide auto-fill to your application.

Updating the dataset
--------------------

[](#updating-the-dataset)

The following will fetch the newest data from the respective national bank authorities (e.g. Bundesbank in Germany or OeNB in Austria) and regenerate the files in the `datasets` and the `datasets-extended` directory:

```
npm run generate
```

For Spain and France, data directly from the European Central Bank is used, see [here](https://www.ecb.europa.eu/stats/financial_corporations/list_of_financial_institutions/html/monthly_list-MID.en.html).

License
-------

[](#license)

MIT

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance56

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.6% 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

Unknown

Total

1

Last Release

605d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/de0d55f19348acbcac0f12c6f0f2d2090cefe2e5de82def563d8f14cff25e177?d=identicon)[mogelijk\_technologies](/maintainers/mogelijk_technologies)

---

Top Contributors

[![sigalor](https://avatars.githubusercontent.com/u/12279340?v=4)](https://github.com/sigalor "sigalor (42 commits)")[![rleroi](https://avatars.githubusercontent.com/u/6817390?v=4)](https://github.com/rleroi "rleroi (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![sam-medispring](https://avatars.githubusercontent.com/u/70625381?v=4)](https://github.com/sam-medispring "sam-medispring (3 commits)")[![Csardelacal](https://avatars.githubusercontent.com/u/1152823?v=4)](https://github.com/Csardelacal "Csardelacal (2 commits)")[![lammensj-ds](https://avatars.githubusercontent.com/u/112473524?v=4)](https://github.com/lammensj-ds "lammensj-ds (1 commits)")

### Embed Badge

![Health badge](/badges/mogelijk-technologies-iban-to-bic/health.svg)

```
[![Health](https://phpackages.com/badges/mogelijk-technologies-iban-to-bic/health.svg)](https://phpackages.com/packages/mogelijk-technologies-iban-to-bic)
```

PHPackages © 2026

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