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

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

topkstt/laravel-thai-address
============================

Help Thailand developer for address database

1.0.1(3y ago)21.8k↓50%MITPHPPHP &gt;=7.1

Since Nov 5Pushed 3y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Laravel Thai Address
====================

[](#laravel-thai-address)

[![MIT License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://choosealicense.com/licenses/mit/) [![Latest Stable Version](https://camo.githubusercontent.com/8cc857eede1cc7bfb1cec83e55029dcee4696c400e1c9c21c727edc88782f04c/687474703a2f2f706f7365722e707567782e6f72672f746f706b7374742f6c61726176656c2d746861692d616464726573732f76)](https://packagist.org/packages/topkstt/laravel-thai-address) [![PHP Version Require](https://camo.githubusercontent.com/7c5d8bab661d8ad11a9ba97a49abf0fa34121322395111a4ce7d868b34d6b00a/687474703a2f2f706f7365722e707567782e6f72672f746f706b7374742f6c61726176656c2d746861692d616464726573732f726571756972652f706870)](https://packagist.org/packages/topkstt/laravel-thai-address) [![Monthly Downloads](https://camo.githubusercontent.com/c04983b0272c862014890c1144071c8943cbe7014e78bef05ebc51b940546097/687474703a2f2f706f7365722e707567782e6f72672f746f706b7374742f6c61726176656c2d746861692d616464726573732f642f6d6f6e74686c79)](https://packagist.org/packages/topkstt/laravel-thai-address)

Provide Thailand geographic database like provinces, districts, sub-districts and generate api route for you application.

Features
--------

[](#features)

- Thailand provinces, district, sub district and postal codes database.
- REST API Routes.
- Support UUID (Set in config file).

Roadmap
-------

[](#roadmap)

- Add English Name
- Add Latitude &amp; Longitude Information
- Add Address Extractor

Requirement
-----------

[](#requirement)

- PHP 7.1 - 8.1
- Laravel 7.0 - 9.0

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

[](#installation)

Install Laravel Thai Address with Composer

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

Publishing package config file

```
php artisan vendor:publish --provider="TopKSTT\ThaiAddress\ThaiAddressServiceProvider" --tag="config"
```

Publishing package migration file &amp; migrate database

```
php artisan vendor:publish --provider="TopKSTT\ThaiAddress\ThaiAddressServiceProvider" --tag="migrations"
php artisan migrate
```

Publishing package migration seeder &amp; seed database

```
php artisan vendor:publish --provider="TopKSTT\ThaiAddress\ThaiAddressServiceProvider" --tag="seeders"
php artisan db:seed --class=ThaiAddressTablesSeeder
```

API Reference
-------------

[](#api-reference)

- Please enabled API config in thai\_address.php config file before call API endpoint.
- Please set prefix API route in thai\_address.php config file before call API endpoint.
- Postman Collection -&gt; [Click here](https://documenter.getpostman.com/view/5193220/2s8YYFsj5M)

### Province

[](#province)

#### Get all province

[](#get-all-province)

```
  GET /api/{YOUR_PREFIX_IF_SET}/province/all
```

ParameterTypeDescription`with_all``boolean`**Optional**. Include postal\_code, sub\_district, district to result.#### Get province by ID

[](#get-province-by-id)

```
  GET /api/{YOUR_PREFIX_IF_SET}/province/${id}
```

ParameterTypeDescription`with_all``boolean`**Optional**. Include postal\_code, sub\_district, district to result.#### Search province by name

[](#search-province-by-name)

```
  GET /api/{YOUR_PREFIX_IF_SET}/province/search/${id}
```

ParameterTypeDescription`with_all``boolean`**Optional**. Include postal\_code, sub\_district, district to result.### District

[](#district)

#### Get all district

[](#get-all-district)

```
  GET /api/{YOUR_PREFIX_IF_SET}/district/all
```

ParameterTypeDescription`with_province``boolean`**Optional**. Include province to result.`with_sub_district``boolean`**Optional**. Include sub district to result.#### Get district by ID

[](#get-district-by-id)

```
  GET /api/{YOUR_PREFIX_IF_SET}/district/${id}
```

ParameterTypeDescription`with_province``boolean`**Optional**. Include province to result.`with_sub_district``boolean`**Optional**. Include sub district to result.#### Search district by name

[](#search-district-by-name)

```
  GET /api/{YOUR_PREFIX_IF_SET}/district/search/${id}
```

ParameterTypeDescription`with_province``boolean`**Optional**. Include province to result.`with_sub_district``boolean`**Optional**. Include sub district to result.### Sub District

[](#sub-district)

#### Get all sub district

[](#get-all-sub-district)

```
  GET /api/{YOUR_PREFIX_IF_SET}/sub-district/all
```

ParameterTypeDescription`with_district``boolean`**Optional**. Include district to result.`with_postal_code``boolean`**Optional**. Include postal code to result.#### Get sub district by ID

[](#get-sub-district-by-id)

```
  GET /api/{YOUR_PREFIX_IF_SET}/sub-district/${id}
```

ParameterTypeDescription`with_district``boolean`**Optional**. Include district to result.`with_postal_code``boolean`**Optional**. Include postal code to result.#### Search sub district by name

[](#search-sub-district-by-name)

```
  GET /api/{YOUR_PREFIX_IF_SET}/sub-district/search/${id}
```

ParameterTypeDescription`with_district``boolean`**Optional**. Include district to result.`with_postal_code``boolean`**Optional**. Include postal code to result.### Postal Code

[](#postal-code)

#### Get all postal code

[](#get-all-postal-code)

```
  GET /api/{YOUR_PREFIX_IF_SET}/postal-code/all
```

ParameterTypeDescription`with_district``boolean`**Optional**. Include district to result.`with_sub_district``boolean`**Optional**. Include sub district to result.`with_province``boolean`**Optional**. Include province to result.#### Get postal code by ID

[](#get-postal-code-by-id)

```
  GET /api/{YOUR_PREFIX_IF_SET}/postal-code/${id}
```

ParameterTypeDescription`with_district``boolean`**Optional**. Include district to result.`with_sub_district``boolean`**Optional**. Include sub district to result.`with_province``boolean`**Optional**. Include province to result.#### Search postal code by name

[](#search-postal-code-by-name)

```
  GET /api/{YOUR_PREFIX_IF_SET}/postal-code/search/${id}
```

ParameterTypeDescription`with_district``boolean`**Optional**. Include district to result.`with_sub_district``boolean`**Optional**. Include sub district to result.`with_province``boolean`**Optional**. Include province to result.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

2

Last Release

1283d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29277624?v=4)[TopKST](/maintainers/topkstt)[@topkstt](https://github.com/topkstt)

---

Top Contributors

[![apinan-topcloud](https://avatars.githubusercontent.com/u/85150070?v=4)](https://github.com/apinan-topcloud "apinan-topcloud (14 commits)")[![topkstt](https://avatars.githubusercontent.com/u/29277624?v=4)](https://github.com/topkstt "topkstt (2 commits)")

### Embed Badge

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

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

###  Alternatives

[sylvainjule/footnotes

Footnotes plugin for Kirby 3, 4 and 5

582.7k](/packages/sylvainjule-footnotes)

PHPackages © 2026

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