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

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

exceptio/bangladesh-geocode
===========================

Division, District, Upazila level fully mapped package for laravel

050PHP

Since Jan 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/azcpavel/bangladesh-geocode)[ Packagist](https://packagist.org/packages/exceptio/bangladesh-geocode)[ RSS](/packages/exceptio-bangladesh-geocode/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

```
# bangladesh-geocode

```

Division, District, Upazila level fully mapped package for Laravel

- [Installation](#installation)
    - [Composer](#composer)
    - [Service Provider](#service-provider)
    - [Migrations Files](#migrations-file)
    - [Migrations](#migrations)
- [Usage](#usage)
    - [Getting Records](#geeting-records)
    - [Getting Records With Relations](#geeting-records-with-relations)
- [Credit Notes](#credit-notes)
- [More Information](#more-information)
- [Opening an Issue](#opening-an-issue)
- [License](#license)

---

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

[](#installation)

This package is very easy to set up. There are only couple of steps.

### Composer

[](#composer)

Pull this package in through Composer

```
composer require exceptio/bangladesh-geocode

```

### Service Provider

[](#service-provider)

- Laravel 5.5 and up Uses package auto discovery feature, no need to edit the `config/app.php` file.
- Laravel 5.4 and below Add the package to your application service providers in `config/app.php` file.

```
'providers' => [

    ...

    /**
     * Third Party Service Providers...
     */
    Exceptio\BangladeshGeoCode\BangladeshGeoCodeServiceProvider::class,

],
```

### Migrations File

[](#migrations-file)

Publish the package migrations file to your application if required. Run these commands inside your terminal.

```
php artisan vendor:publish --tag=exceptio-bd-geocode-migrations

```

### Migrations and seeds

[](#migrations-and-seeds)

Run the migration command to make the changes to the database, this will also dump the required data to tables.

```
php artisan migrate

```

### And that's it!

[](#and-thats-it)

---

Usage
-----

[](#usage)

### Getting Records

[](#getting-records)

Use the package models to get the records.

```
use Exceptio\BangladeshGeoCode\Model\Division;

$division = Division::get();
```

### Getting Records With Relations

[](#getting-records-with-relations)

Use the package models with relations to get the records and you can use your own where clause.

```
use Exceptio\BangladeshGeoCode\Model\Division;
use Exceptio\BangladeshGeoCode\Model\DivisionDistrict;
use Exceptio\BangladeshGeoCode\Model\DivisionDistrictUpazila;

$division = Division::with('districts.upazilas')->get();
```

---

Credit Notes
------------

[](#credit-notes)

This package database file is inspired from [nuhil/bangladesh-geocode](https://github.com/nuhil/bangladesh-geocode)

This package readme file is inspired from [laravel-roles](https://github.com/jeremykenedy/laravel-roles)

More Information
----------------

[](#more-information)

For more information, please have a look at [Model](https://github.com/azcpavel/bangladesh-geocode/tree/master/src/Model) files.

Opening an Issue
----------------

[](#opening-an-issue)

Before opening an issue there are a couple of considerations:

- A **star** on this project shows support and is a way to say thank you to all the contributors. If you open an issue without a star, *your issue may be closed without consideration.* Thank you for understanding and support.
- **Read the instructions** and make sure all steps were *followed correctly*.
- **Check** that the issue is not *specific to your development environment* setup.
- **Provide** *duplication steps*.
- **Attempt to look into the issue**, and if you *have a solution, make a pull request*.
- **Show that you have made an attempt** to *look into the issue*.
- **Check** to see if the issue you are *reporting is a duplicate* of a previously reported issue.
- **Following these instructions show me that you have tried.**
- If you have questions send me an email to
- Please be considerate that this is an open source project that I provide to the community for FREE when opening an issue.

License
-------

[](#license)

This package is free software distributed under the terms of the MIT license.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5669627?v=4)[Ahsan Zahid Chowdhury](/maintainers/azcpavel)[@azcpavel](https://github.com/azcpavel)

---

Top Contributors

[![azcpavel](https://avatars.githubusercontent.com/u/5669627?v=4)](https://github.com/azcpavel "azcpavel (11 commits)")

### Embed Badge

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

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

###  Alternatives

[sabre/amf

SabreAMF is a Flash Remoting server and client for PHP

416.2k1](/packages/sabre-amf)

PHPackages © 2026

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