PHPackages                             salymmbise/tanzania-banks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. salymmbise/tanzania-banks

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

salymmbise/tanzania-banks
=========================

A PHP library for listing all banks in Tanzania, their branches and SWIFT Codes

v8(4mo ago)160MITPHP

Since Aug 28Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/devmpemba/tanzania-banks)[ Packagist](https://packagist.org/packages/salymmbise/tanzania-banks)[ RSS](/packages/salymmbise-tanzania-banks/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

Tanzania Banks Library
======================

[](#tanzania-banks-library)

This PHP library provides a list of banks in Tanzania along with their branches and SWIFT codes.

Installation
------------

[](#installation)

Install the library via Composer:

```
composer require salymmbise/tanzania-banks
```

Example Usage
-------------

[](#example-usage)

```
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
=======

[](#license)

This project is licensed under the MIT License - see the LICENSE file for details.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance74

Regular maintenance activity

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~74 days

Recently: every ~109 days

Total

8

Last Release

145d ago

Major Versions

v1.1.0 → v2.0.02024-09-04

v2.0.0 → v3.0.02024-11-21

v3.0.0 → v5.0.02025-02-20

v5.0.0 → v6.0.02025-04-16

v6.0.0 → v7.0.02025-05-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/105650566?v=4)[Salym Mbisse](/maintainers/devmpemba)[@devmpemba](https://github.com/devmpemba)

---

Top Contributors

[![devmpemba](https://avatars.githubusercontent.com/u/105650566?v=4)](https://github.com/devmpemba "devmpemba (24 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/salymmbise-tanzania-banks/health.svg)

```
[![Health](https://phpackages.com/badges/salymmbise-tanzania-banks/health.svg)](https://phpackages.com/packages/salymmbise-tanzania-banks)
```

###  Alternatives

[shweshi/opengraph

A Laravel package to fetch website Open Graph metadata.

167768.0k1](/packages/shweshi-opengraph)[novutec/whoisparser

Lookup domain names, IP addresses and AS numbers by WHOIS.

392.0M1](/packages/novutec-whoisparser)[friendsofcat/laravel-feature-flag

Feature Flags for Laravel

311.2M](/packages/friendsofcat-laravel-feature-flag)[krayin/krayin-google-integration

Krayin Google Integration

292.3k](/packages/krayin-krayin-google-integration)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
