suchmaske / emarsys-countries

Map ISO country codes to emarsys country codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:PHP 99.6%Language:Makefile 0.4%