PHPackages                             jord-jd/php-languages - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. jord-jd/php-languages

ActiveLibrary[Localization &amp; i18n](/categories/localization)

jord-jd/php-languages
=====================

A tiny package to help convert between languages names (such as English, French, German) and various ISO language codes (such as en, fr, de).

v3.1.0(1mo ago)161LGPL-3.0-onlyPHPPHP &gt;=7.0CI passing

Since Jun 18Pushed 1mo agoCompare

[ Source](https://github.com/Jord-JD/php-languages)[ Packagist](https://packagist.org/packages/jord-jd/php-languages)[ GitHub Sponsors](https://github.com/DivineOmega)[ RSS](/packages/jord-jd-php-languages/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

PHP Languages
=============

[](#php-languages)

PHP Languages is a tiny package to help convert between languages names (such as English, French, German) and various ISO language codes (such as en, fr, de).

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

[](#installation)

To install PHP Languages, just run the following Composer command.

```
composer require jord-jd/php-languages
```

Usage
-----

[](#usage)

Get a `Language` object by its English name, native name, or ISO code. You can also find every language in a family. Lookups trim surrounding whitespace and are case-insensitive.

```
use JordJD\Languages\Language;

$language = Language::getByName('German');
$language = Language::getByNativeName('Deutsch');
$language = Language::getByIso639_1('de');
$language = Language::getByIso639_2_t('deu');
$language = Language::getByIso639_2_b('ger');
$language = Language::getByIso639_3('deu');
$languages = Language::getByFamily('Indo-European');
$languages = Language::all();
```

The ISO methods also have aliases without underscores, such as `Language::getByIso6391('de')` and `Language::getByIso6393('deu')`. A single language lookup returns `null` when there is no match; family lookups return an empty array.

Once you have your `Language` object, you can access its various public properties to yield information about the language.

```
echo $language->family;         // Indo-European
echo $language->name;           // German
echo $language->nativeName;     // Deutsch
echo $language->iso639_1;       // de
echo $language->iso639_2_t;     // deu
echo $language->iso639_2_b;     // ger
echo $language->iso639_3;       // deu
```

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance94

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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

Every ~984 days

Total

4

Last Release

32d ago

Major Versions

v1.0.0 → v2.0.02026-02-14

v2.0.0 → v3.0.02026-02-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

---

Top Contributors

[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (12 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

iso639iso639-1iso639-2iso639-3languagelanguagesphpphp-library

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jord-jd-php-languages/health.svg)

```
[![Health](https://phpackages.com/badges/jord-jd-php-languages/health.svg)](https://phpackages.com/packages/jord-jd-php-languages)
```

###  Alternatives

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[devaslanphp/auto-translate

Auto generate translation JSON files

6627.3k](/packages/devaslanphp-auto-translate)

PHPackages © 2026

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