marshmallow / iban
With this package you will be able to check iban numbers and get BIC information.
Installs: 54
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/marshmallow/iban
Requires
- php: ^7.0|^8.0
This package is auto-updated.
Last update: 2025-10-12 20:11:38 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