cmpayments / iban
IBAN utility library
Installs: 284 758
Dependents: 7
Suggesters: 0
Security: 0
Stars: 29
Watchers: 6
Forks: 12
Open Issues: 1
Requires
- php: >=5.5
Requires (Dev)
- jakub-onderka/php-parallel-lint: ^0.9.0
- phpunit/phpunit: ^4.7|>=5.0 <5.4
- squizlabs/php_codesniffer: ^2.3
Suggests
- ext-bcmath: Because this library makes use of bcmod function, bcmath extension is recommended for performance.
- phpunit/phpunit: If PHP Unit is not globally installed on your system the tests will not run, install the PHP Unit package locally to run the tests
This package is auto-updated.
Last update: 2024-11-27 02:01:42 UTC
README
cmpayments/iban is a PHP 5.5+ library for validating IBAN bank account numbers.
It currently supports IBAN validation of 99 countries
Installation
To install cmpayments/iban just require it with composer
composer require cmpayments/iban
Usage example
<?php require 'vendor/autoload.php'; use CMPayments\IBAN; $iban = new IBAN('NL58ABNA0000000001'); // validate the IBAN if (!$iban->validate($error)) { echo "IBAN is not valid, error: " . $error; } // pretty print IBAN echo $iban->format();
Submitting bugs and feature requests
Bugs and feature request are tracked on GitHub
Copyright and license
The cmpayment/iban library is copyright © Bas Peters and licensed for use under the MIT License (MIT). Please see LICENSE for more information.