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.0.0(4mo ago)121LGPL-3.0-onlyPHP

Since Jun 18Pushed 4mo 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 today

READMEChangelog (3)DependenciesVersions (4)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)

First, you need to get a `Language` object. You can get object by language name or ISO code. You can also find all languages that belong to a particular family.

```
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');
```

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

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

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance74

Regular maintenance activity

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~1399 days

Total

3

Last Release

139d 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 (11 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

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

### 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

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1927.0k1](/packages/smmoosavi-php-gettext)

PHPackages © 2026

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