With this package you will be able to check iban numbers and get BIC information.

v1.2.3 2021-04-07 10:44 UTC

This package is auto-updated.

Last update: 2024-04-05 09:58:42 UTC


README

68747470733a2f2f63646e2e6d617273686d616c6c6f772d6f66666963652e636f6d2f6d656469612f696d616765732f6c6f676f2f6d617273686d616c6c6f772e7472616e73706172656e742e7265642e706e67

Issues Forks Stars License

IBAN

Package to validate IBAN and get BIC information.

Installing

composer require marshmallow/iban

Validate IBAN

Call \Marshmallow\IBAN\IBAN::validate($iban) to check if the provided iban is valid. This function will return true|false.

Get account number

Call \Marshmallow\IBAN\IBAN::getBankAccount($iban) to get the bank account number. If the IBAN is not valid, it will return null.

Get BIC from IBAN

Call \Marshmallow\IBAN\IBAN::getBic($iban) to get the BIC code for this iban number. An array will be returned if we can match it. If not, null will be returned.

[
    "bic" => "RABONL2U"
    "identifier" => "RABO"
    "name" => "RABOBANK"
    "iban" => "NL93RABO0317745646"
    "account_number" => "317745646"
]

Tests during development

php artisan test packages/marshmallow/iban