robote13 / countries-list
包含ISO 3166-1名称和代码的国家列表,用作数组键。
dev-master
2017-03-14 15:58 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-09-18 22:46:15 UTC
README
包含ISO 3166-1名称和代码的国家列表,用作数组键。
安装
安装此扩展的首选方式是通过composer。
运行
php composer.phar require --prefer-dist robote13/countries-list "*"
或者将以下内容添加到你的composer.json
文件的require部分。
"robote13/countries-list": "*"
用法
安装扩展后,只需在代码中通过以下方式使用它:
<?= \robote13\countries_list\AutoloadExample::widget(); ?>```