Skip to content

SGLMS/country-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SGLMS Country List

This is a very simple country-list wrapper for php based on rinvex/countries.

We use it for out own projects that require localization.

Usage

We included localization (translations) as a second parameter for convenience.

$country     = Country::find('us');  // Country Object
$countryName = Country::name('us', 'de');  // Vereinigte Staaten von Amerika
$countryFlag = Country::flag('us');
$countrySelectOptionsArray = Country::getSelectOptions('de');
\\ [..., 'us' => "Vereinigte Staaten von Amerika"]