yaroslawww / laravel-international-info
This package is abandoned and no longer maintained.
The author suggests using the think.studio/laravel-international-info package instead.
International information data set.
1.1.0
2023-08-20 09:45 UTC
Requires
- php: ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- orchestra/testbench: ^8.5
- phpunit/phpunit: ^10.1
- psalm/plugin-laravel: ^2.8
- vimeo/psalm: ^5.11
This package is auto-updated.
Last update: 2023-08-20 10:00:45 UTC
README
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'