Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Thai Addresses

Thai Addresses Laravel Package

soap/thai-addresses

Laravel package providing complete Thai address data — provinces, districts, subdistricts, and postal codes — with seeders, models, and lookup helpers. Easily import and query hierarchical Thai geographic data for forms, validation, and address autocomplete in PHP apps.

View on GitHub
Deep Wiki
Context7

soap/thai-addresses provides ready-to-use Thai administrative address data—provinces, districts, subdistricts, and postal codes—for Laravel and PHP applications. It ships with migrations, seeders, and models so you can populate a normalized address database in minutes, then use it for forms, validation, or location-based features.

  • Includes provinces, districts, and subdistricts with postal codes
  • Migrations and seeders for quick database setup
  • Eloquent models with relationships for hierarchical lookups
  • Supports Thai and English names
  • Useful for address forms, validation, and shipping logic
Frequently asked questions about Thai Addresses
What is soap/thai-addresses used for in Laravel?
It provides a Thai address database for Laravel applications, covering provinces, districts, subdistricts, and postal codes. It is intended for address forms, location pickers, and other Thai location data needs. The package includes migrations, seeders, and lookup helpers to reduce manual data setup.
How do I install soap/thai-addresses with Composer?
Install it as a Composer dependency with composer require soap/thai-addresses. After installation, follow the package README for any service provider registration, publishing, migration, and seeding steps. Exact Laravel auto-discovery and publish commands depend on the package version.
Does this package include migrations and seeders for Thai address data?
Yes, the package is described as including migrations and seeders for provinces, districts, subdistricts, and postal codes. You normally run the migrations and seeders to populate your application database. Check the README for the exact artisan commands and whether publishing is required.
How do I look up districts by province or subdistricts by district?
The package provides lookup helpers for working with Thai address data, but exact class and method names should be confirmed in the README. Typically you query the province, district, and subdistrict records using their relationships or helper methods. Use these lookups to populate cascading selects and resolve postal codes.
Which Laravel and PHP versions does soap/thai-addresses support?
The package is built for Laravel applications, but the supported Laravel and PHP version constraints are defined in its composer.json. Check that file and the README before installing in an existing project. If you maintain an older Laravel version, verify compatibility before relying on it in production.
Can I build cascading province, district, and subdistrict dropdowns with this package?
Yes, the data model is suitable for cascading Thai address selects: choose a province, then filter districts, then subdistricts, and optionally use postal codes. You will usually expose lookup endpoints or pass seeded data to your form components. The package supplies the address data and helpers; the UI behavior is up to your Laravel application.
How do I publish or customize the migrations and seed data?
The package includes migrations and seeders, so check the README for any vendor:publish tags or configuration options. If you need to customize tables or seed data, publish the package assets where supported or adapt the migrations in your application. Avoid editing vendor files directly so upgrades remain manageable.
Is soap/thai-addresses suitable for production Thai address forms?
It can be suitable for production when the seeded Thai address data meets your requirements and you have tested the lookup flow. Seed the data during deployment, add indexes for frequently queried columns such as province, district, subdistrict, and postal code, and cache stable lookup results if needed. Also review the package maintenance status and data freshness for your use case.
How should I test address forms that use soap/thai-addresses?
Use Laravel's testing tools with a test database, run the package migrations, and seed only the address records needed for each test. Then assert that your endpoints or form requests return the expected provinces, districts, subdistricts, and postal codes. If your app caches lookups, clear or fake the cache in tests.
What are alternatives to soap/thai-addresses for Thai address data in Laravel?
Alternatives include other Composer packages that ship Thai province, district, subdistrict, and postal code datasets, or importing a maintained Thai address dataset into your own Laravel models. Compare data freshness, Laravel version support, migration and seeder quality, lookup helpers, and maintenance activity. For small applications, a custom import with your own lookup layer can also be enough.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo