iio / phpcountry
0.3.1
2013-02-01 10:05 UTC
Requires
- php: >=5.3.0
- umpirsky/country-list: 1.*
This package is not auto-updated.
Last update: 2022-02-01 12:23:30 UTC
README
注意: 此包已弃用,将不再更新。请使用 symfony Intl 组件。
PHP Country
从 ISO 3166-1 编码获取本地化国家名称
用法
$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');