cmpayments / iban
IBAN 工具库
1.1.0
2018-02-19 14:55 UTC
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-08-27 01:26:40 UTC
README
cmpayments/iban 是一个适用于 PHP 5.5+ 版本的用于验证 IBAN 银行账户号码的库。
目前支持 99 个国家的 IBAN 验证
安装
要安装 cmpayments/iban,只需使用 composer 依赖管理器
composer require cmpayments/iban
使用示例
<?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();
提交问题和功能请求
问题和功能请求在 GitHub 上跟踪
版权和许可
cmpayment/iban 库版权所有 © Bas Peters,并许可在 MIT 许可证(MIT)下使用。有关更多信息,请参阅 LICENSE。