【文件属性】:
文件名称:country-list
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-02 20:38:39
PHP
弃
您可以使用symfony / intl组件来执行与此包相同的操作
国家清单
周围的包装器,可轻松获取使用特定语言的国家/地区列表,或通过国家/地区代码和语言获取特定国家/地区。
正在安装
composer.json
{
" require " : {
" woutersioen/country-list " : " dev-master "
}
}
您项目的索引文件
// update this to the path to the "vendor/" directory, relative to this file
require_once '../vendor/autoload.php' ;
用法
使用依赖项注入容器:
首先,将Sioen\Countries类的实例添加到依赖项注入容器中。
// fetch an array of count
【文件预览】:
country-list-master
----composer.json(697B)
----.travis.yml(190B)
----composer.lock(2KB)
----LICENCE.md(1KB)
----src()
--------Sioen()
----.gitignore(7B)
----phpunit.xml.dist(565B)
----README.md(2KB)