PHPackages                             fawno/un-m49 - 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. fawno/un-m49

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

fawno/un-m49
============

Standard country or area codes for statistical use (M49)

1.0.0(1y ago)07MITPHPPHP &gt;=7.4.0

Since Jan 20Pushed 1y ago2 watchersCompare

[ Source](https://github.com/fawno/UN-M49)[ Packagist](https://packagist.org/packages/fawno/un-m49)[ RSS](/packages/fawno-un-m49/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Standard country or area codes for statistical use (M49)
========================================================

[](#standard-country-or-area-codes-for-statistical-use-m49)

[![GitHub license](https://camo.githubusercontent.com/2f2d27daab799257828787768246751ae5d55b13efb39a73b6dda7c0b0d6a75f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6661776e6f2f554e2d4d3439)](https://github.com/fawno/UN-M49/blob/master/LICENSE)[![GitHub tag (latest SemVer)](https://camo.githubusercontent.com/a79e7163f3b6f01f4d72838207adeb65958ecef7c453533e1c305e18471739f9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6661776e6f2f554e2d4d3439)](https://github.com/fawno/UN-M49/tags)[![Packagist](https://camo.githubusercontent.com/f49a6c973e8fe5df4422ecc74f47104d5b47fbb98483c65464e40108a80d2253/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661776e6f2f756e2d6d3439)](https://packagist.org/packages/fawno/un-m49)[![Packagist Downloads](https://camo.githubusercontent.com/bf1caba68443e38a8e362628a5981f220a9f4bc39c7edc7affdcfd65c05690c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6661776e6f2f756e2d6d3439)](https://packagist.org/packages/fawno/un-m49/stats)[![GitHub issues](https://camo.githubusercontent.com/1c31d1f6dca69ffa3035858c13376b190cd68dc6361d1e5331df257928ae93a0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6661776e6f2f554e2d4d3439)](https://github.com/fawno/UN-M49/issues)[![GitHub forks](https://camo.githubusercontent.com/03b37e62c0c1f8e55cdde0e28006f62be4581306429266091d45a2b3f7b38ed7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6661776e6f2f554e2d4d3439)](https://github.com/fawno/UN-M49/network)[![GitHub stars](https://camo.githubusercontent.com/449c459e0821cc433bb1ceb97dbb874f93698dbdcce336f1ddee24e955f3f9f2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6661776e6f2f554e2d4d3439)](https://github.com/fawno/UN-M49/stargazers)[![PHP](https://camo.githubusercontent.com/0e035ddde48f17aeee5cd61f79e0f76d884f7ee188f8975c92ef54ce9a08d787/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6661776e6f2f756e2d6d3439)](https://php.net)

[Standard country or area codes for statistical use (M49)](https://unstats.un.org/unsd/methodology/m49/)

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4.0

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

[](#installation)

You can install this plugin into your application using [composer](https://getcomposer.org):

```
  composer require fawno/un-m49

```

Usage
-----

[](#usage)

```
use UN\M49\English\ISOalpha3Names as ISOalpha3NamesEnglish;
use UN\M49\Spanish\ISOalpha3Names as ISOalpha3NamesSpanish;
use UN\M49\French\ISOalpha3Names as ISOalpha3NamesFrench;
use UN\M49\Russian\ISOalpha3Names as ISOalpha3NamesRussian;
use UN\M49\Chinese\ISOalpha3Names as ISOalpha3NamesChinese;
use UN\M49\Arabic\ISOalpha3Names as ISOalpha3NamesArabic;
use UN\M49\ISOalpha3;

// Get ISO-alpha3 code from M49 code
echo ISOalpha3::fromM49(724), PHP_EOL;

// Get English name from M49 code
echo ISOalpha3NamesEnglish::fromM49(724), PHP_EOL;

// Get Spanish name from M49 code
echo ISOalpha3NamesSpanish::fromM49(724), PHP_EOL;

// Get French name from M49 code
echo ISOalpha3NamesFrench::fromM49(724), PHP_EOL;

// Get Russian name from M49 code
echo ISOalpha3NamesRussian::fromM49(724), PHP_EOL;

// Get Chinese name from M49 code
echo ISOalpha3NamesChinese::fromM49(724), PHP_EOL;

// Get Arabic name from M49 code
echo ISOalpha3NamesArabic::fromM49(724), PHP_EOL;
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance42

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

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

483d ago

### Community

Maintainers

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

---

Top Contributors

[![alphp](https://avatars.githubusercontent.com/u/8992091?v=4)](https://github.com/alphp "alphp (2 commits)")

### Embed Badge

![Health badge](/badges/fawno-un-m49/health.svg)

```
[![Health](https://phpackages.com/badges/fawno-un-m49/health.svg)](https://phpackages.com/packages/fawno-un-m49)
```

###  Alternatives

[dnoegel/php-xdg-base-dir

implementation of xdg base directory specification for php

6.3k239.4M16](/packages/dnoegel-php-xdg-base-dir)[thiagoalessio/tesseract_ocr

A wrapper to work with Tesseract OCR inside PHP.

3.0k3.3M25](/packages/thiagoalessio-tesseract-ocr)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[mark-gerarts/auto-mapper-plus

An AutoMapper for PHP

5623.2M21](/packages/mark-gerarts-auto-mapper-plus)[wamania/php-stemmer

Native PHP Stemmer

1434.0M33](/packages/wamania-php-stemmer)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)

PHPackages © 2026

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