iio/phpcountry

此包已被废弃,不再维护。作者建议使用 symfony/intl 包。

[已弃用] 从 ISO 3166-1 编码获取本地化国家名称

0.3.1 2013-02-01 10:05 UTC

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');