eelcol/laravel-iso-codes

Convert country ISO codes to full country name - for laravel

Installs: 1 859

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

v1.0.5 2017-12-01 08:44 UTC

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