Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 592 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 592 Bytes

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"]