A helper package for deploying laravel apps in Thailand
Install through Composer (currently in Beta, remove dev-master once we move to a stable release)
composer require "awcode/thai-laravel" "dev-master"
Or manually adding
{
"require": {
"awcode/thai-laravel": "dev-master"
}
}
Once installed run these commands to publish the config file.
php artisan vendor:publish --provider="Awcode\ThaiLaravel\ThaiLaravelServiceProvider"
Run below to publish the Address database migrations and seeds.
php artisan migrate
php artisan thailaravel:install
Seeders and helper classes to populate all Thai Provinces, Postcodes and Districts
Connector to the Where.in.th commercial database for locating individual addresses
Validate a phone number is correct format for Thailand
Validate a Thai ID card is in correct format
Convert Thai Years to Gregorian Calendar
Convert Rai/Wah (Land unit measurements) to other common formats
Easily switch numbers between Arabic and Thai numerals
Font packages to help use Thai Text
Helpers to make Thai fonts work in other packages such as DomPDF
This has been built by the team at AWcode, for both our internal needs and to support the Thai developer community. Please run your own tests to ensure that this fits your needs, no warranty or guarantee is provided.
If you have any questions, feedback or issues please raise an Issue on this repository.
Contributors are welcome to submit pull requests for review.