laravel-international-info maintained by think.studio
Description
International information data set.
Author
Last update
2023/08/20 11:45
(dev-main)
License
Downloads
18
Tags
International information data set.
Easy get Country ISO code/State/PhoneCode.
Installation
Install the package via composer:
composer require think.studio/laravel-international-info
You can publish the config file with:
php artisan vendor:publish --provider="InternationalInfo\ServiceProvider" --tag="config"
# optional
php artisan vendor:publish --provider="InternationalInfo\ServiceProvider" --tag="storage"
Usage
InternationalInfo::country()->list();
InternationalInfo::country()->list('AI'); // Anguilla
$country = InternationalInfo::country();
$country->findISOCode('GB') // 'GB'
$country->findISOCode('gb') // 'GB'
$country->findISOCode('United Kingdom (UK)') // 'GB'



