PHPackages                             divineomega/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. divineomega/php-languages

Abandoned → [jord-jd/php-languages](/?search=jord-jd%2Fphp-languages)Library[Utility &amp; Helpers](/categories/utility)

divineomega/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(6mo ago)1381LGPL-3.0-onlyPHPCI passing

Since Jun 18Pushed 3w agoCompare

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

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

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

45

—

FairBetter than 91% of packages

Maintenance83

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

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 ~1399 days

Total

3

Last Release

181d 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

### Embed Badge

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

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

###  Alternatives

[yepsua/filament-rating-field

Ranting field for the Filament forms

4738.4k](/packages/yepsua-filament-rating-field)[aura/payload-interface

An interface package for Domain Payload implementations.

12407.9k4](/packages/aura-payload-interface)

PHPackages © 2026

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