bespin/datavalidation-iban

Library for IBAN verification and other IBAN helpers

v1.0.4 2024-09-25 13:14 UTC

This package is auto-updated.

Last update: 2025-03-25 14:21:25 UTC


README

This is a collection of methods to verify and format IBAN

How to use

Verify

This command will verify the IBAN

\Bespin\DataValidation\Iban::verify('DE12 3456 7890 0000 9999 88');

Format

Human readable

This will format a IBAN to a string with whitespace

\Bespin\DataValidation\Iban::format('DE12345678900000999988', \Bespin\DataValidation\Format::human);

Machine readable

This will format an IBAN to a string without any whitespace

\Bespin\DataValidation\Iban::format('DE12 3456 7890 0000 9999 88', \Bespin\DataValidation\Format::machine);

Supported Countries

TBD, in the meantime check the countries directory

Developer Information

the classes in the countries directory are generated by running Data\generate.php and supplying a registry.txt which can be obtained at
https://www.swift.com/standards/data-standards/iban-international-bank-account-number