vinelab/country

Installs: 198

Dependents: 0

Stars: 1

Watchers: 2

Language: PHP

v0.1.4 2015-07-23 17:26 UTC

README

Translates between country name and abbreviation and vise versa.

Installation

Refer to vinelab/country on packagist.org for composer installation instructions.

Edit app.php and add 'Vinelab\Country\CountryServiceProvider', to the 'providers' array.

It will automatically alias itself as Country so no need to aslias it in your app.php unless you would like to customize it. In that case edit your 'aliases' in app.php adding 'MyCountry' => 'Vinelab\Country\Facades\Guide',

Usage

$countryName = Country::name('US'); // United States
$countryAbbreviation = Country::abbreviation('United States'); // US

No tests provided with this package as it is a bit tricky to test at this point...