suchmaske / emarsys-countries
A class to map country codes and country names to Emarsys' specified country Ids.
Installs: 397
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/suchmaske/emarsys-countries
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ^5
This package is auto-updated.
Last update: 2025-10-11 08:58:39 UTC
README
Description
A small library to map country ISO-3166-1 country IDs to their respective Emarsys IDs.
Installation
composer require suchmaske/emarsys-countries
Run Tests
Directly
composer install
vendor/bin/phpunit tests
Docker
make init
make test
Usage
use Suchmaske\EmarsysCountries\EmarsysCountryHelper; ... EmarsysCountryHelper::getCountryIdByIsoCode2('DE'); // returns 65 EmarsysCountryHelper::getCountryIdByIsoCode3('DEU'); // returns 65 EmarsysCountryHelper::getCountryIdByNumericIsoCode(276); // returns 65