teraone/laravel-iban-to-bic

v1.0.3 2023-12-11 11:10 UTC

This package is auto-updated.

Last update: 2024-04-11 11:48:45 UTC


README

68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f68726c7478317164352f696d6167652f75706c6f61642f76313538373337333433342f7a766c6d7133746a74726e39726b326c6d3364752e737667

Laravel IBAN to BIC Converter

Warning Currently only works with german IBANs

Installation

Install the package via Composer:

composer require teraone/laravel-iban-to-bic

Migrate your database:

php artisan migrate

After installing or updating the package run these two commands to import the most recent data:

php artisan vendor:publish --provider="Teraone\LaravelIbanToBic\IbanToBicServiceProvider" --force
php artisan import:bank-data

Usage

This Package adds a Facade called 'IbanToBicConverter' with one function called 'getBic', that returns a 'Bank' Object containing the BIC and some additional Information like the banks name and Bankleitzahl.

$bank = \Teraone\LaravelIbanToBic\Facades\IbanToBicConverter::getBic($iban);

Data

The Data this Package uses is provided by Bundesbank and can be found here.

License

The MIT License (MIT). Please see License File for more information.