mogelijk-technologies/iban-to-bic
最新稳定版本:v1.3.0
Composer 安装命令:
composer require mogelijk-technologies/iban-to-bic
包简介
IBAN to BIC PHP
README 文档
README
Determines the SWIFT BIC of an IBAN. Currently supports IBANs from the following countries: Austria, Belgium, Germany, Luxembourg, Netherlands, Spain, France.
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) or if no corresponding BIC was found.
Usage in PHP
use Mogelijk\IbanToBic; $bic = (new IbanToBic())->ibanToBic('DE51500105179975341634'); // $bic is now "INGDDEFFXXX"
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:
<script type="text/javascript" src="https://unpkg.com/iban-to-bic@latest/dist/iban-to-bic.js">
Or
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/iban-to-bic@latest/dist/iban-to-bic.js">
And then invoke it like this:
<script type="text/javascript"> window.ibanToBic.ibanToBic('********'); </script>
Using this code makes it super comfortable to validate user input and provide auto-fill to your application.
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.
License
MIT
统计信息
- 总下载量: 5.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-01-04