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(2y ago)91733MITPHP

Since Jun 6Pushed 2y 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 3d 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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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

758d ago

Major Versions

v1.0.0 → v2.0.02024-06-07

### 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 (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)
```

###  Alternatives

[t3/dce

Best FlexForm based content elements since 2012. With TCA mapping feature, simple backend view and much more features which makes it super easy to create own content element types.

17463.6k1](/packages/t3-dce)

PHPackages © 2026

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