PHPackages                             mibo/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. mibo/languages

ActiveLibrary

mibo/languages
==============

PHP Library for ISO 639-2, ISO 639-1 language codes

1.0.0(2y ago)07.3k↓34.6%[1 PRs](https://github.com/4513/languages/pulls)1MITPHPPHP ^8.2CI passing

Since Dec 14Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/4513/languages)[ Packagist](https://packagist.org/packages/mibo/languages)[ RSS](/packages/mibo-languages/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (2)Used By (1)

Languages
=========

[](#languages)

[![codecov](https://camo.githubusercontent.com/c85f7f52c5620159153b868746c186f0629b93cff132a78620588bf1fb945561/68747470733a2f2f636f6465636f762e696f2f67682f343531332f6c616e6775616765732f67726170682f62616467652e7376673f746f6b656e3d55504b56303574687465)](https://codecov.io/gh/4513/languages)

*mibo/languages*

The library provides a simple interface for a language entity and language provider, which retrieves a language by its ISO 639 alpha-2 code, alpha-3 code, alpha-3/B code.
If the provider does not find the language, it throws an exception.

The Language entity contains its name, ISO 639-1 alpha-2 code, 639-2 alpha-3 code (639-2/T), 639-2/B code, and the language's name.

The list of the available languages can be changed by the provider, because the library (ISO) provider allows the dev to insert his/her own array of languages.

```
$provider = new \MiBo\Languages\ISO\LanguageProvider($myLanguageList ?? []);

$lang = $provider->getByAlpha2('sk');

echo $lang->getName(); // Slovak
echo $lang->getAlpha2(); // sk
echo $lang->getAlpha3(); // slk
echo $lang->getAlpha3T(); // slk
echo $lang->getAlpha3B(); // slo
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance59

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

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

886d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0866c3280ed62cfc74feb086241ec9ee56bab89b4fa2b8c8a3dbd62508761b6a?d=identicon)[MiBo](/maintainers/MiBo)

---

Top Contributors

[![4513](https://avatars.githubusercontent.com/u/25705559?v=4)](https://github.com/4513 "4513 (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

phplanguagelanguagesisostandardlangiso-639639codesISO 639-1language codeslangs639-2ISO 639-2 BISO 639-2 T

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[matriphe/iso-639

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

503.3M6](/packages/matriphe-iso-639)[gettext/languages

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[laravel-lang/common

Easily connect the necessary language packs to the application

1463.1M22](/packages/laravel-lang-common)[io238/laravel-iso-countries

Ready-to-use Laravel models and relations for country (ISO 3166), language (ISO 639-1), and currency (ISO 4217) information with multi-language support.

5462.3k](/packages/io238-laravel-iso-countries)[whitecube/lingua

A PHP language codes converter, from and to the most common formats (ISO, W3C, PHP and human-readable names).

441.2M15](/packages/whitecube-lingua)[juanparati/iso-codes

A PHP library that provides ISO codes, currencies, languages, timezones and additional geopolitical information

17146.4k](/packages/juanparati-iso-codes)

PHPackages © 2026

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