PHPackages                             suchmaske/emarsys-countries - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. suchmaske/emarsys-countries

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

suchmaske/emarsys-countries
===========================

A class to map country codes and country names to Emarsys' specified country Ids.

v1.0.0(5y ago)2397MITPHPPHP &gt;=5.6CI failing

Since Mar 10Pushed 5y agoCompare

[ Source](https://github.com/suchmaske/emarsys-countries)[ Packagist](https://packagist.org/packages/suchmaske/emarsys-countries)[ RSS](/packages/suchmaske-emarsys-countries/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Emarsys Country Helper
======================

[](#emarsys-country-helper)

Description
-----------

[](#description)

A small library to map country [ISO-3166-1](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country IDs to their respective [Emarsys IDs](https://help.emarsys.com/hc/en-us/articles/115004634749-single-choice-fields-and-their-values).

Installation
------------

[](#installation)

```
composer require suchmaske/emarsys-countries

```

Run Tests
---------

[](#run-tests)

### Directly

[](#directly)

```
composer install
vendor/bin/phpunit tests

```

### Docker

[](#docker)

```
make init
make test

```

Usage
-----

[](#usage)

```
use Suchmaske\EmarsysCountries\EmarsysCountryHelper;

...

EmarsysCountryHelper::getCountryIdByIsoCode2('DE'); // returns 65
EmarsysCountryHelper::getCountryIdByIsoCode3('DEU'); // returns 65
EmarsysCountryHelper::getCountryIdByNumericIsoCode(276); // returns 65
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1885d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22bf93407f1d9547b4bcd3992abb8ca8765669b4cabe2b34170f71aa8f517b8c?d=identicon)[suchmaske](/maintainers/suchmaske)

---

Top Contributors

[![suchmaske](https://avatars.githubusercontent.com/u/4989253?v=4)](https://github.com/suchmaske "suchmaske (6 commits)")

---

Tags

emarsysphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/suchmaske-emarsys-countries/health.svg)

```
[![Health](https://phpackages.com/badges/suchmaske-emarsys-countries/health.svg)](https://phpackages.com/packages/suchmaske-emarsys-countries)
```

###  Alternatives

[shipmonk/name-collision-detector

Simple tool to find ambiguous classes or any other name duplicates within your project.

362.1M34](/packages/shipmonk-name-collision-detector)[bostondv/bootstrap-ninja-forms

Adds Bootstrap classes to Ninja Forms

222.2k](/packages/bostondv-bootstrap-ninja-forms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
