salymmbise/tanzania-banks
最新稳定版本:v7.0.0
Composer 安装命令:
composer require salymmbise/tanzania-banks
包简介
A PHP library for listing all banks in Tanzania, their branches and SWIFT Codes
README 文档
README
This PHP library provides a list of banks in Tanzania along with their branches and SWIFT codes.
Installation
Install the library via Composer:
composer require salymmbise/tanzania-banks
Example Usage
<?php require 'vendor/autoload.php'; use Salymmbise\TanzaniaBanks\BankList; // Instantiate the BankList class $bankList = new BankList(); // Get all banks $banks = $bankList->getBanks(); echo "Banks in Tanzania:\n"; print_r($banks); // Get branches for National Bank of Commerce $branches = $bankList->getBranches('National Bank of Commerce'); echo "\nBranches of National Bank of Commerce:\n"; print_r($branches); // Get SWIFT code for a specific branch of National Bank of Commerce $swiftCode = $bankList->getSwiftCode('National Bank of Commerce', 'Dar es Salaam - Corporate Branch'); echo "\nSWIFT Code of National Bank of Commerce Dar es Salaam - Corporate Branch:\n"; echo $swiftCode . "\n"; // Get branches for CRDB Bank $branches = $bankList->getBranches('CRDB Bank'); echo "\nBranches of CRDB Bank:\n"; print_r($branches); // Get SWIFT code for a specific branch of CRDB Bank $swiftCode = $bankList->getSwiftCode('CRDB Bank', 'Dar es Salaam - Azikiwe Branch'); echo "\nSWIFT Code of CRDB Bank Dar es Salaam - Azikiwe Branch:\n"; echo $swiftCode . "\n"; ## Methods getBanks() Returns an array of all banks available in Tanzania. $banks = $bankList->getBanks(); getSwiftCode($bank, $branch) Returns the SWIFT code for a specific branch of a bank. $swiftCode = $bankList->getSwiftCode('National Bank of Commerce', 'Dar es Salaam - Corporate Branch');
License
This project is licensed under the MIT License - see the LICENSE file for details.
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-21