PHPackages                             mj-dymalla/iso3166 - 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. mj-dymalla/iso3166

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

mj-dymalla/iso3166
==================

151PHP

Since Feb 25Pushed 4y agoCompare

[ Source](https://github.com/MJDymalla/ISO3166-Library)[ Packagist](https://packagist.org/packages/mj-dymalla/iso3166)[ RSS](/packages/mj-dymalla-iso3166/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ISO3166-Library
===============

[](#iso3166-library)

These codes are the standard for defining countries, dependent territories, special areas of geographical interest, and their principal subdivisions.

### Data

[](#data)

contains all ICU supported countries including iso3166-1 &amp; iso3166-2 codes in addition to their supported translations.

### Structure

[](#structure)

#### 3166-1

[](#3166-1)

The 3166-1 directory contains both ISO3166-1 official country codes and meta data as well as supported translations separated by locale.

'data/3166-1/meta.json':

```
"AU": {
    "alpha-2": "AU",
    "alpha-3": "AUD",
    "numeric": "036"
}
```

'data/3166-1/ja.json':

```
{
    "AU": "オーストラリア"
}
```

#### 3166-2

[](#3166-2)

The 3166-2 directory contains both ISO3166-2 official Sub-division codes and meta data as well as supported translations both separated by alpha-2 country code and locale. Since it is more common to require the sub-divisions for a specific country this structure avoids the loading of irrelevant data.

'data/3166-2/GB/meta.json':

```
{
    "GB-SCT": {
        "code": "GB-SCT",
        "type": "Country"
    },
    "GB-NLK": {
        "code": "GB-NLK",
        "type": "Council area",
        "parent": "SCT"
    }
}
```

'data/3166-2/GB/ja.json':

```
{
    "GB-SCT": "スコットランド"
}
```

### Usage

[](#usage)

The data itself is intended to be language agnostic to allow for implementations across numerous languages.

Example implementations can be found below:

#### NPM

[](#npm)

#### PHP (packagist)

[](#php-packagist)

### Data Sources

[](#data-sources)

#### Symfony/Intl:

[](#symfonyintl)

#### Debain/iso-codes

[](#debainiso-codes)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb47a8da6e4c626a62c8f60977ce9b94ba9bc43d2391caf6f239c20670b07643?d=identicon)[MJDymalla](/maintainers/MJDymalla)

---

Top Contributors

[![mdymalla](https://avatars.githubusercontent.com/u/55011443?v=4)](https://github.com/mdymalla "mdymalla (8 commits)")

### Embed Badge

![Health badge](/badges/mj-dymalla-iso3166/health.svg)

```
[![Health](https://phpackages.com/badges/mj-dymalla-iso3166/health.svg)](https://phpackages.com/packages/mj-dymalla-iso3166)
```

###  Alternatives

[treeware/plant

13355.9k6](/packages/treeware-plant)[aschmelyun/size

Simple PHP helper to convert bytes to different sizes

471.2k](/packages/aschmelyun-size)

PHPackages © 2026

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