vinelab / country
Country names and abbreviations
v0.3.0
2021-04-22 07:02 UTC
Requires
- php: >=7.0
- illuminate/contracts: *
- illuminate/support: *
Requires (Dev)
- mockery/mockery: ^1.2
- phpunit/phpunit: ^6.5
README
Translates between country name and abbreviation and vise versa.
Installation
composer require vinelab/country
Publish Config File
php artisan vendor:publish --provider="Vinelab\Country\CountryServiceProvider"
Usage
$countryName = Country::name('US'); // United States $countryAbbreviation = Country::abbreviation('United States'); // US