PHPackages                             uatthaphon/laravel-thai-address - 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. uatthaphon/laravel-thai-address

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

uatthaphon/laravel-thai-address
===============================

Thai provincial database with latitude and longitude.

0.1.3(8y ago)51.9kMITPHPPHP &gt;=5.6.4

Since Feb 3Pushed 3y ago2 watchersCompare

[ Source](https://github.com/uatthaphon/laravel-thai-address)[ Packagist](https://packagist.org/packages/uatthaphon/laravel-thai-address)[ RSS](/packages/uatthaphon-laravel-thai-address/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (7)Used By (0)

laravel-thai-address
====================

[](#laravel-thai-address)

Thai provincial database with latitude and longitude.

Setup
-----

[](#setup)

Add package dependency to your project

```
composer require uatthaphon/laravel-thai-address
```

Before Laravel 5.5, add package's service provider to your project's `config/app.php`

```
'providers' => [
  ...

  Uatthaphon\ThaiAddress\ThaiAddressServiceProvider::class,
],
```

Run publishing to publish 3 tagging =&gt; `migrations` `csv` `seeds`

```
php artisan vendor:publish
```

After all has been published you can create tables by running the migrations

```
php artisan migrate
```

Then run seeder, it will grab csv and fill them into each tables

```
php artisan db:seed --class=ThailandAddressSeeder
```

Usage
-----

[](#usage)

You can use available models for thai address tables

```
use Uatthaphon\ThaiAddress\Models\ThailandProvince;
use Uatthaphon\ThaiAddress\Models\ThailandDistrict;
use Uatthaphon\ThaiAddress\Models\ThailandSubdistrict;

...

/**
 * Available Relationships
 */

// list all districts under the province
app(ThailandProvince::class)->find(1)->districts()->get();

// get province of the district
app(ThailandDistrict::class)->find(1)->province;
// list all sub districtes under the district
app(ThailandDistrict::class)->find(1)->subdistricts()->get();

// get district of the subdistrict
app(ThailandSubdistrict::class)->find(1)->district;
// get province of the subdistrict
app(ThailandSubdistrict::class)->find(1)->province;
```

Credits
-------

[](#credits)

This project wouldn't exist without the awesome database source by [aaronamm/thai-administrative-division-province-district-subdistrict-sql](https://github.com/aaronamm/thai-administrative-division-province-district-subdistrict-sql)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

3019d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37b259dc83a031f066f594771210fd8e5bbbf63c01dfc27372d992d7fd4825a4?d=identicon)[uatthaphon](/maintainers/uatthaphon)

---

Top Contributors

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

---

Tags

laravelthai address

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/uatthaphon-laravel-thai-address/health.svg)

```
[![Health](https://phpackages.com/badges/uatthaphon-laravel-thai-address/health.svg)](https://phpackages.com/packages/uatthaphon-laravel-thai-address)
```

###  Alternatives

[highideas/laravel-users-online

This package will provide an online users management.

203113.2k1](/packages/highideas-laravel-users-online)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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