Skip to content

suchmaske/emarsys-countries

Repository files navigation

Emarsys Country Helper

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

About

Map ISO country codes to emarsys country codes

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published