teraone/laravel-iban-to-bic

v1.0.5 2024-09-24 08:27 UTC

This package is auto-updated.

Last update: 2024-12-24 09:04:43 UTC


README

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.