suchmaske / emarsys-countries
一个将国家代码和国家名称映射到Emarsys指定国家ID的类。
v1.0.0
2021-03-10 22:56 UTC
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ^5
This package is auto-updated.
Last update: 2024-09-11 06:40:28 UTC
README
描述
一个小型库,用于将ISO-3166-1国家ID映射到相应的Emarsys ID。
安装
composer require suchmaske/emarsys-countries
运行测试
直接
composer install
vendor/bin/phpunit tests
Docker
make init
make test
使用方法
use Suchmaske\EmarsysCountries\EmarsysCountryHelper; ... EmarsysCountryHelper::getCountryIdByIsoCode2('DE'); // returns 65 EmarsysCountryHelper::getCountryIdByIsoCode3('DEU'); // returns 65 EmarsysCountryHelper::getCountryIdByNumericIsoCode(276); // returns 65