Skip to content

Vinelab/country

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Country package for Laravel 5

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