marshmallow / iban
With this package you will be able to check iban numbers and get BIC information.
v1.2.3
2021-04-07 10:44 UTC
Requires
- php: ^7.0|^8.0
This package is auto-updated.
Last update: 2024-11-05 11:19:30 UTC
README
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