PHPackages                             salimmbise/tanzania-regions - 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. salimmbise/tanzania-regions

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

salimmbise/tanzania-regions
===========================

A Laravel package to get Tanzanian regions and their districts

v2.0.0(1y ago)81663MITPHP

Since Jun 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/devmpemba/TanzaniaRegions)[ Packagist](https://packagist.org/packages/salimmbise/tanzania-regions)[ RSS](/packages/salimmbise-tanzania-regions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Tanzania Regions-Districts-Wards Library
----------------------------------------

[](#tanzania-regions-districts-wards-library)

How to Install the Package
--------------------------

[](#how-to-install-the-package)

```
composer require salimmbise/tanzania-regions
```

How to Use it
-------------

[](#how-to-use-it)

At first make sure you run composer require and publish the Vendor, then import this package in order to use it:

```
use SalimMbise\TanzaniaRegions\TanzaniaRegions;
```

Get All Regions
---------------

[](#get-all-regions)

```
$tanzaniaRegions = new TanzaniaRegions();
$regions = $tanzaniaRegions->getRegions();
```

Get All Regions, Districts and Wards (with Postcode)
----------------------------------------------------

[](#get-all-regions-districts-and-wards-with-postcode)

```
$regions = new TanzaniaRegions();
$allRegionsData = $regions->getAllData();
```

Get All Districts
-----------------

[](#get-all-districts)

```
$tanzaniaRegions = new TanzaniaRegions();
$districts = $tanzaniaRegions->getDistricts();
```

Get All Regions with their Districts
------------------------------------

[](#get-all-regions-with-their-districts)

```
$tanzaniaRegions = new TanzaniaRegions();
$regions = $tanzaniaRegions->getRegions();

$regionsWithDistricts = [];

foreach ($regions as $region) {
$districts = $tanzaniaRegions->getDistricts($region);
$regionsWithDistricts[$region] = $districts;

}
```

Happy Coding!

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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 ~0 days

Total

2

Last Release

705d ago

Major Versions

v1.0.0 → v2.0.02024-06-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/5359b51116193893bb3507189954426e8e55224b29d66510494ebc777e2914ce?d=identicon)[devmpemba](/maintainers/devmpemba)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/salimmbise-tanzania-regions/health.svg)

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

PHPackages © 2026

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