eelcol / laravel-iso-codes
Convert country ISO codes to full country name - for laravel
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
v1.0.5
2017-12-01 08:44 UTC
Requires
- php: >=5.6.4
This package is auto-updated.
Last update: 2020-10-04 23:33:43 UTC
README
Installation
Install this package with composer:
php composer.phar require eelcol/laravel-iso-codes
Add the provider to config/app.php file
'eelcol\LaravelIsoCodes\ServiceProvider',
Examples
$Countryname = IsoConvert::convert('nl'); // Netherlands
or
$Countryname = IsoConvert::convert('NL'); // Netherlands
or
$Countryname = iso_convert('NL'); // Netherlands
Multiple languages are available. Currently languages 'en' and 'nl' are available:
$Countryname = IsoConvert::convert('gb', 'nl'); // Verenigd Koninkrijk
$Countryname = IsoConvert::convert('gb', 'en'); // United Kingdom, language 'en' is default