PHPackages                             devnix/m49-country-codes - 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. devnix/m49-country-codes

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

devnix/m49-country-codes
========================

List of actual and old m49 country codes to ISO 3166-1 alpha-2

0.1(7mo ago)03.2k↓33.9%MITPHPPHP ^8.1

Since Sep 26Pushed 7mo agoCompare

[ Source](https://github.com/devnix/m49-country-codes)[ Packagist](https://packagist.org/packages/devnix/m49-country-codes)[ RSS](/packages/devnix-m49-country-codes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

devnix/m49-country-codes
========================

[](#devnixm49-country-codes)

A PHP package to convert actual and old m49 country codes to ISO 3166-1 alpha-2

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

[](#installation)

```
composer require devnix/m49-country-codes
```

Usage
-----

[](#usage)

```
$m49Finder = new Devnix\M49\Finder();

$m49Finder->m49ToIso31661alpha2(276); // 'DE'

$m49Finder->obsoleteM49ToIso31661alpha2(280); // 'DE'
$m49Finder->obsoleteM49ToIso31661alpha2(278); // 'DE'
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance62

Regular maintenance activity

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

234d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/462de3bc6b5b394cc968eb74fc519cb923d18903f79cad6dc0397f9607b41f36?d=identicon)[DevNIX](/maintainers/DevNIX)

---

Top Contributors

[![devnix](https://avatars.githubusercontent.com/u/1777519?v=4)](https://github.com/devnix "devnix (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/devnix-m49-country-codes/health.svg)

```
[![Health](https://phpackages.com/badges/devnix-m49-country-codes/health.svg)](https://phpackages.com/packages/devnix-m49-country-codes)
```

###  Alternatives

[symfony/polyfill-intl-icu

Symfony polyfill for intl's ICU-related data and classes

2.6k251.4M96](/packages/symfony-polyfill-intl-icu)[vivait/string-generator-bundle

Generate random strings for IDs or keys using property annotations

1759.4k](/packages/vivait-string-generator-bundle)[withinboredom/time

Converting time to units

152.7k1](/packages/withinboredom-time)

PHPackages © 2026

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