propt8/country-information
Composer 安装命令:
composer require propt8/country-information
包简介
PHP library for country information
README 文档
README
Country Information
Installation
Package is available on Packagist, you can install it using Composer.
composer require propt8/country-information
Dependencies
- PHP 7.1+
Basic usage
use propt8\Country\Country; Country::countryName('Lithuania'); // return CountryInformationEntity Country::countryCode('LT'); // return CountryInformationEntity Country::countryAlpha3Code('LTU'); // return CountryInformationEntity Country::countryCode('LT')->toArray();
Data sample:
{
"country_name": "Lithuania",
"country_code": "LT",
"country_alpha3_code": "LTU",
"country_numeric_code": 440,
"capital": "Vilnius",
"country_demonym": "Lithuanians",
"total_area": 65300,
"population": 2876475,
"idd_code": "370",
"currency_code": "LTL",
"currency_name": "Lithuanian Litas",
"currency_symbol": "Lt",
"lang_code": "LT",
"lang_name": "Lithuanian",
"cctld": "lt"
}
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-21