PHPackages                             sandofvega/bdgeocode - 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. sandofvega/bdgeocode

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

sandofvega/bdgeocode
====================

8 Division, 64 District, 491 Thana and 2350 Union fully mapped laravel package.

v2.0.4(7y ago)2336112MITPHP

Since Sep 7Pushed 7mo ago1 watchersCompare

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

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

Laravel Bangladesh Geocode
==========================

[](#laravel-bangladesh-geocode)

[![Latest Stable Version](https://camo.githubusercontent.com/e5569dbc9de8d0c30eecbaccfca2c3d91016eb624f927232d5ce5d46f5aac10d/68747470733a2f2f706f7365722e707567782e6f72672f73616e646f66766567612f626467656f636f64652f762f737461626c65)](https://packagist.org/packages/sandofvega/bdgeocode)[![Total Downloads](https://camo.githubusercontent.com/3336937c5d4233f2915ddb5ae1b8f2679f1afdcc3f13e6ef64c535f761c402f5/68747470733a2f2f706f7365722e707567782e6f72672f73616e646f66766567612f626467656f636f64652f646f776e6c6f616473)](https://packagist.org/packages/sandofvega/bdgeocode)[![License](https://camo.githubusercontent.com/fd57febabd8991fadc0ce4f3baa7c94470829851d00f43e2d6ef4380cd5c7f56/68747470733a2f2f706f7365722e707567782e6f72672f73616e646f66766567612f626467656f636f64652f6c6963656e7365)](https://packagist.org/packages/sandofvega/bdgeocode)[![Twitter Follow](https://camo.githubusercontent.com/3cea8d87884c9ddbfca708b2a039084a62457b1c77fa2401771b9913d153e56b/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f73616e646f66766567612e7376673f6c6162656c3d466f6c6c6f77267374796c653d736f6369616c)](https://twitter.com/intent/follow?screen_name=sandofvega)

8 Division, 64 District, 491 Thana and 4541 Union fully mapped laravel package. Easy to install &amp; config. All data is accessible from database using laravel eloquent ORM.

> All information, content, and spelling have been taken from

Contents
--------

[](#contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [License](#license)
- [Contribution guidelines](#contribution-guidelines)

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

[](#installation)

In order to install Bdgeocode, just run this command in your project:

```
composer require sandofvega/bdgeocode
```

Configuration
-------------

[](#configuration)

1. Publish models and migration file:

```
php artisan vendor:publish --provider="Sandofvega\Bdgeocode\BdgeocodeServiceProvider"
```

2. Run artisan migrate command:

```
php artisan migrate
```

After the migration, four new tables will be present:

- `divisions`
- `districts`
- `thanas`
- `unions`

3. Add Bdgeocode's seeder class to `database/seeds/DatabaseSeeder.php`:

```
use Sandofvega\Bdgeocode\Seeds\BdgeocodeSeeder;

class DatabaseSeeder extends Seeder
{
    public function run()
    {
        $this->call(BdgeocodeSeeder::class);
        //
    }
}
```

Now you are ready. When you run the seed command (e.g. `db:seed` or `migrate:fresh --seed`) the Bdgeocode's data will be inserted into your database.

Usage
-----

[](#usage)

You can get all data by using those models. E.g:

```
use App\District;

$districts = District::all();
```

There are relations bitween models. E. g:

```
use App\District;

$district = District::first(); // A district

$division = $district->division // Division for a district

$thanas = $district->thanas // All thana in a district
```

- **Note:** There is one division for a district so the relation name is `division`(singular), not `divisions`. And there are many thanas in a district so the relation name is `thanas`(plural), not `thana`. You must follow this rule to call every relation.

License
-------

[](#license)

Laravel Bangladesh Geocode is free software distributed under the terms of the MIT license.

Contribution guidelines
-----------------------

[](#contribution-guidelines)

We follow [PSR-2](https://www.php-fig.org/psr/psr-2/) and [PSR-4](https://www.php-fig.org/psr/psr-4/) PHP coding standards and [Semantic Versioning](https://semver.org/).

Please report any issue you find. And pull requests are welcome.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance43

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity70

Established project with proven stability

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

Recently: every ~11 days

Total

13

Last Release

2788d ago

Major Versions

v1.1.3 → v2.0.02018-09-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34006175?v=4)[Yasin Arafat](/maintainers/sandofvega)[@sandofvega](https://github.com/sandofvega)

---

Top Contributors

[![sandofvega](https://avatars.githubusercontent.com/u/34006175?v=4)](https://github.com/sandofvega "sandofvega (59 commits)")

---

Tags

bangladesh-geocodelaravel-packagelaravelgeocodebangladesh

### Embed Badge

![Health badge](/badges/sandofvega-bdgeocode/health.svg)

```
[![Health](https://phpackages.com/badges/sandofvega-bdgeocode/health.svg)](https://phpackages.com/packages/sandofvega-bdgeocode)
```

###  Alternatives

[spatie/geocoder

Geocoding addresses to coordinates

8425.0M19](/packages/spatie-geocoder)

PHPackages © 2026

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