evdw/country-list
Composer 安装命令:
composer require evdw/country-list
包简介
This library allow you to get countries names and ISO codes in all languages for php usage.
README 文档
README
This library allow you to get countries names and ISO codes in all languages for php usage.
Installing
$ composer require evdw/country-list
Using
Get a country names list in a specific language:
use EVDW\CountriesFactory; $countriesFactory = new CountriesFactory; $countriesFactory->getCountries('fr'); // Return a countries array in french
Get a country iso code, by specifying the language in which the country is written:
use EVDW\CountriesFactory; $countriesFactory = new CountriesFactory; $countriesFactory->getIsoCode('fr', 'france'); // Return the french ISO code
If the locale or the country name do not exist, no errors are throw, it returns null or empty array.
统计信息
- 总下载量: 12.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-13