Skip to content
This repository has been archived by the owner on Dec 15, 2019. It is now read-only.

Latest commit

 

History

History
20 lines (15 loc) · 482 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 482 Bytes

NOTE: This package is deprecated and will not be updated. Please use the symfony Intl component instead.

PHP Country

Get localized country names from ISO 3166-1 codes

Usage

$country = new \iio\phpcountry\Country;

// only needed if you do not want phpcountry to use the
// current locale setting
$country->setLang('en');

// outputs: Sweden
echo $country->translate('se');