PHPackages                             gmo/iso-639 - 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. gmo/iso-639

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

gmo/iso-639
===========

Convert between ISO-639 codes

v1.0.0(10y ago)479.7k↑25.5%5[1 PRs](https://github.com/gmo/iso-639/pulls)1MITPHPPHP &gt;=5.3

Since Jul 17Pushed 8y ago8 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (1)

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

[](#installation)

Install with composer:

```
composer require "gmo/iso-639:^1.0"

```

Usage
-----

[](#usage)

Initialize the `Languages` class, then find a `Language` by one of its properties.

```
use Gmo\Iso639\Languages;

$languages = new Languages();

$english = $languages->findByName('English');

echo $english->code1();  // en
echo $english->code2t(); // eng
echo $english->code2b(); // eng
echo $english->code3();  // eng
echo $english->name();   // English
```

Converting ISO 639-3 codes to ISO 639-1 codes:

```
$languages->findByCode3('eng')->code1(); // en
```

Or reverse:

```
$languages->findByCode1('en')->code3(); // eng
```

`Languages` can be iterated:

```
foreach ($languages as $language) {
    echo $language->name();
}
```

Or a list can be retrieved:

```
$languages->getLanguages();
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

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

3959d ago

### Community

Maintainers

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

---

Top Contributors

[![CarsonF](https://avatars.githubusercontent.com/u/932566?v=4)](https://github.com/CarsonF "CarsonF (1 commits)")

---

Tags

languageisoiso-639639

### Embed Badge

![Health badge](/badges/gmo-iso-639/health.svg)

```
[![Health](https://phpackages.com/badges/gmo-iso-639/health.svg)](https://phpackages.com/packages/gmo-iso-639)
```

###  Alternatives

[phpoption/phpoption

Option Type for PHP

2.7k541.2M159](/packages/phpoption-phpoption)[matriphe/iso-639

PHP library to convert ISO-639-1 code to language name.

503.3M6](/packages/matriphe-iso-639)[league/iso3166

ISO 3166-1 PHP Library

70036.3M116](/packages/league-iso3166)[patrickschur/language-detection

A language detection library for PHP. Detects the language from a given text string.

8513.2M18](/packages/patrickschur-language-detection)[wapmorgan/morphos

A morphological solution for Russian and English language written completely in PHP. Provides classes to inflect personal names, geographical names, decline and pluralize nouns, generate cardinal and ordinal numerals, spell out money amounts and time.

8351.3M7](/packages/wapmorgan-morphos)[payum/iso4217

ISO 4217 PHP Library

16312.1M5](/packages/payum-iso4217)

PHPackages © 2026

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