PHPackages                             soap/thailand-provinces - 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. [Database &amp; ORM](/categories/database)
4. /
5. soap/thailand-provinces

ActiveLaravel-package[Database &amp; ORM](/categories/database)

soap/thailand-provinces
=======================

Thailand provinces database as Laravel package

v2.0.0(3y ago)325MITPHP

Since Jun 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/soap/thailand-provinces)[ Packagist](https://packagist.org/packages/soap/thailand-provinces)[ RSS](/packages/soap-thailand-provinces/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (6)Versions (13)Used By (0)

Laravel Thailand Provinces
==========================

[](#laravel-thailand-provinces)

Thailand provinces data for Laravel

[![Build Status](https://camo.githubusercontent.com/a3ca425f16f3ddfcfb6f0a67538e5b2d217cf64ef8c2146509bf6b2810ef8479/68747470733a2f2f7472617669732d63692e6f72672f736f61702f746861696c616e642d70726f76696e6365732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/soap/thailand-provinces.svg?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/206d41cffb61f000f617ab6c545a62c82183c8308c1d23270a824eea1a259d2a/68747470733a2f2f706f7365722e707567782e6f72672f736f61702f746861696c616e642d70726f76696e6365732f762f737461626c65)](https://packagist.org/packages/soap/thailand-provinces)[![Total Downloads](https://camo.githubusercontent.com/825545c8ef37017ed2478d1583d4f67dfd27a6e555f00b4236bb7b41f832ce41/68747470733a2f2f706f7365722e707567782e6f72672f736f61702f746861696c616e642d70726f76696e6365732f646f776e6c6f616473)](https://packagist.org/packages/soap/thailand-provinces)[![Latest Unstable Version](https://camo.githubusercontent.com/1606507d45e10bda1e3bc269c1bbbab166c7500f960e218cffbe7fa9ac86ce6f/68747470733a2f2f706f7365722e707567782e6f72672f736f61702f746861696c616e642d70726f76696e6365732f762f756e737461626c65)](https://packagist.org/packages/soap/thailand-provinces)[![License](https://camo.githubusercontent.com/0dc6c162150c39edc5b26e129de162a609072501295c115e4cf8b595e23be2e1/68747470733a2f2f706f7365722e707567782e6f72672f736f61702f746861696c616e642d70726f76696e6365732f6c6963656e7365)](https://packagist.org/packages/soap/thailand-provinces)

Thailand provinces database
===========================

[](#thailand-provinces-database)

This database was taken from .

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

[](#installation)

Add `soap/thailand-provinces` to `composer.json`.

```
"soap/thailand-countries": "dev-master"

```

Run `composer update` to pull down the latest version of Provinces List.

Edit `app/config/app.php` and add the `provider` and `alias`

```
'providers' => [
    'Soap\ThProvinces\ProvincesServiceProvider',
]

```

Now add the alias.

```
'aliases' => [
    'ThProvinces' => 'Soap\ThProvinces\Provinces\Facades\Provinces',
]

```

Model (Data)
------------

[](#model-data)

You can start by publishing the configuration. This is an optional step, it contains the table name and does not need to be altered. If the default name `provinces` suits you, leave it. Otherwise run the following command

```
$ php artisan vendor:publish --tag=thprovinces

```

Next generate the migration file:

```
$ php artisan thprovinces:migration

```

It will generate the `_create_provinces_table.php` migration and the `ProvincesSeeder.php` seeder. To make sure the data is seeded insert the following code in the `seeds/DatabaseSeeder.php`

```
//Seed the provinces
$this->call('ProvincesSeeder');
$this->command->info('Seeded Thailand provinces!');

```

You can also run `php artisan db:seed --class=ProvincesSeeder` instead of adding those commands in `seeds/DatabaseSeeder.php`

You may now run it with the artisan migrate command:

```
$ php artisan migrate --seed

```

After running this command the filled provinces table will be available for usage in your application.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

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

Recently: every ~582 days

Total

10

Last Release

1287d ago

Major Versions

v0.9 → v2.0.02022-11-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1073690?v=4)[Prasit Gebsaap](/maintainers/soap)[@soap](https://github.com/soap)

---

Top Contributors

[![soap](https://avatars.githubusercontent.com/u/1073690?v=4)](https://github.com/soap "soap (40 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/soap-thailand-provinces/health.svg)

```
[![Health](https://phpackages.com/badges/soap-thailand-provinces/health.svg)](https://phpackages.com/packages/soap-thailand-provinces)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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