ibantest / ibantest-php
IBANTEST API 的 PHP 客户端
1.3.0
2024-07-14 12:56 UTC
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.8
This package is auto-updated.
Last update: 2024-09-14 13:26:27 UTC
README
此库可用于访问 IBANTEST API 端点。
安装
使用 Composer 获取最新版本。
$ composer require ibantest/ibantest-php
注册
您需要 API 令牌才能使用此 API。
请在 https://www.ibantest.com 注册您的账户,并免费获得 100 个积分。
基本用法
<?php include "vendor/autoload.php"; use Ibantest\Ibantest; $api = new Ibantest(); $api->setToken('###your_api_token###'); # get count of remaining credits $res = $api->getRemainingCredits(); print_r($res); # validate IBAN $res = $api->validateIban('DE02600501010002034304'); print_r($res); # calculate IBAN out of country code, bank code and account number $res = $api->calculateIban('AT', '12000', '703447144'); print_r($res); # calculate IBAN out of country code, bank code and account number $res = $api->calculateIban('BE', '510', '0075470', '61'); print_r($res); # calculate IBAN out of country code, bank code and account number $res = $api->calculateIban('DE', '10090000', '0657845795'); print_r($res); # validate BIC $res = $api->validateBic('BFSWDE33BER'); print_r($res); # find Bank by country code and bank code $res = $api->findBank('CH', '100'); print_r($res);
文档
请查看完整的文档 https://api.ibantest.com/
许可
ibantest-php 采用 MIT 许可证授权 - 有关详细信息,请参阅 LICENSE 文件