PHPackages                             devfaysal/laravel-bangladesh-geocode - 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. devfaysal/laravel-bangladesh-geocode

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

devfaysal/laravel-bangladesh-geocode
====================================

2.9(1mo ago)7612.0k↓80.2%28[1 issues](https://github.com/devfaysal/laravel-bangladesh-geocode/issues)MITPHPPHP ^8.2

Since Nov 27Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/devfaysal/laravel-bangladesh-geocode)[ Packagist](https://packagist.org/packages/devfaysal/laravel-bangladesh-geocode)[ Docs](https://github.com/devfaysal/laravel-bangladesh-geocode)[ RSS](/packages/devfaysal-laravel-bangladesh-geocode/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (10)Dependencies (11)Versions (30)Used By (0)

Bangladesh Geocode
==================

[](#bangladesh-geocode)

Division, District, Upazila and Union data of Bangladesh for Laravel application. One artisan command and you are all set.

Do not hesitate to share your thought, create issue or send pull request.
-------------------------------------------------------------------------

[](#do-not-hesitate-to-share-your-thought-create-issue-or-send-pull-request)

[![Latest Version on Packagist](https://camo.githubusercontent.com/43cf7792e149a28ff3d1ab4725088902c9330b77ec1fdff9c669c2c325d75ed2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657666617973616c2f6c61726176656c2d62616e676c61646573682d67656f636f64652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devfaysal/laravel-bangladesh-geocode)[![](https://github.com/devfaysal/laravel-bangladesh-geocode/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/devfaysal/laravel-bangladesh-geocode/workflows/Run%20Tests/badge.svg?branch=master)[![Quality Score](https://camo.githubusercontent.com/657e22d7c8ba70b5a39375404dd4c3d5850a71d3b9dbed6607a1567c4de1a547/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f64657666617973616c2f6c61726176656c2d62616e676c61646573682d67656f636f64652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/devfaysal/laravel-bangladesh-geocode)[![Total Downloads](https://camo.githubusercontent.com/0cceca9109860954f703dde382e53a04d23d8f2072551fed4ed36607577db041/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657666617973616c2f6c61726176656c2d62616e676c61646573682d67656f636f64652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devfaysal/laravel-bangladesh-geocode)

Laravel Version Compatibility
-----------------------------

[](#laravel-version-compatibility)

LaravelPackage5.5.x - 7.x.x0.4.x8.x.x1.0.x9.x.x - 11.x.x2.0.x - 2.7.x12.x.x - 13.x.x2.8.xUpdate (New Upazila and Union added in v2.3.0)
----------------------------------------------

[](#update-new-upazila-and-union-added-in-v230)

Run this command to add new records to existing application safely

```
php artisan BangladeshGeocode:addnew
```

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

[](#installation)

You can install the package via composer:

```
composer require devfaysal/laravel-bangladesh-geocode
```

Setup everything with just running one artisan command

```
php artisan BangladeshGeocode:setup
```

If you want to add Pourashava with Unions

```
php artisan BangladeshGeocode:addpourashava
```

Usage
-----

[](#usage)

```
use Devfaysal\BangladeshGeocode\Models\Division;
use Devfaysal\BangladeshGeocode\Models\District;
use Devfaysal\BangladeshGeocode\Models\Upazila;

$divisions = Division::all();
$districts = District::all();
$upazilas = Upazila::all();

$division = Division::where('name', 'Dhaka');
$allDistrictsOfDhaka = $division->districts;

$division = Division::find(1);
$districts = $division->districts;

$district = District::find(1);
$upazilas = $district->upazilas;

//Use any Laravel (eluquent) model functions...
```

### Testing

[](#testing)

The package is well supported by automated test.

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Faysal Ahamed](https://github.com/devfaysal)
- [All Contributors](../../contributors)
- Special Thanks to [Nuhil Mehdy](https://github.com/nuhil/bangladesh-geocode). All of the Division, District and Upazila data of this package is from his repo.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance91

Actively maintained with recent releases

Popularity40

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 94.9% 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 ~104 days

Total

24

Last Release

43d ago

Major Versions

0.5.2 → 1.0.02021-09-13

1.0.4 → 2.0.02022-02-10

PHP version history (5 changes)0.1PHP ^7.2

0.3PHP ^7.1

0.5.1PHP ^7.3

0.5.2PHP ^7.3|^8.0

2.9PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f50719e87e4226e3140b479c102248ad1a44f95a059dc34092945a375b68826?d=identicon)[devfaysal](/maintainers/devfaysal)

---

Top Contributors

[![devfaysal](https://avatars.githubusercontent.com/u/16212149?v=4)](https://github.com/devfaysal "devfaysal (75 commits)")[![arif98741](https://avatars.githubusercontent.com/u/17213478?v=4)](https://github.com/arif98741 "arif98741 (2 commits)")[![FarhanShares](https://avatars.githubusercontent.com/u/3446817?v=4)](https://github.com/FarhanShares "FarhanShares (1 commits)")[![Nuhel](https://avatars.githubusercontent.com/u/30118433?v=4)](https://github.com/Nuhel "Nuhel (1 commits)")

---

Tags

devfaysalbangladesh-geocode

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/devfaysal-laravel-bangladesh-geocode/health.svg)

```
[![Health](https://phpackages.com/badges/devfaysal-laravel-bangladesh-geocode/health.svg)](https://phpackages.com/packages/devfaysal-laravel-bangladesh-geocode)
```

###  Alternatives

[illuminate/pagination

The Illuminate Pagination package.

12234.6M1.1k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9350.2M312](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.8M410](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.7M146](/packages/illuminate-cookie)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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