承接 salymmbise/tanzania-banks 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-21