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.8(2mo ago)7511.8k↓79.5%28[1 issues](https://github.com/devfaysal/laravel-bangladesh-geocode/issues)MITPHPPHP ^7.3|^8.0

Since Nov 27Pushed 2mo 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 3d ago

READMEChangelog (10)Dependencies (6)Versions (28)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.x0.4.x5.6.x0.4.x5.7.x0.4.x5.8.x0.4.x6.x.x0.4.x7.x.x0.4.x8.x.x1.0.x9.x.x2.x.x10.x.x2.x.x11.x.x2.x.x12.x.x2.x.x13.x.x2.x.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
```

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

58

—

FairBetter than 98% of packages

Maintenance85

Actively maintained with recent releases

Popularity40

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% 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 ~106 days

Recently: every ~94 days

Total

23

Last Release

74d ago

Major Versions

0.5.2 → 1.0.02021-09-13

1.0.4 → 2.0.02022-02-10

PHP version history (4 changes)0.1PHP ^7.2

0.3PHP ^7.1

0.5.1PHP ^7.3

0.5.2PHP ^7.3|^8.0

### 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 (72 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

### 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M376](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M136](/packages/illuminate-cookie)

PHPackages © 2026

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