teraone / laravel-iban-to-bic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:MIT License


Languages

Language:PHP 100.0%