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

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

matriphe/iso-639
================

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

v2.0.10(7mo ago)503.3M↓16.5%21[1 issues](https://github.com/matriphe/php-iso-639/issues)[1 PRs](https://github.com/matriphe/php-iso-639/pulls)6MITPHPPHP 8.\*CI passing

Since Jun 25Pushed 7mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (16)Used By (6)

PHP ISO-639
===========

[](#php-iso-639)

[![Run Test](https://github.com/matriphe/php-iso-639/actions/workflows/test.yml/badge.svg)](https://github.com/matriphe/php-iso-639/actions/workflows/test.yml)[![Total Download](https://camo.githubusercontent.com/b03d1c7f1da9dbbd589135aa8c943848f4a980776a65e58881fa4cf74f15d654/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617472697068652f69736f2d3633392e737667)](https://packagist.org/packages/matriphe/iso-639)[![Latest Stable Version](https://camo.githubusercontent.com/34949e0e49a97a31724a9b7eb298ababb18c8fae3cf3eda06e49f9c949f286e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617472697068652f69736f2d3633392e737667)](https://packagist.org/packages/matriphe/iso-639)

PHP library to convert ISO-639-1 code to language name, based on Wikipedia's [List of ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).

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

[](#installation)

For PHP 8.1 or latest:

```
composer require matriphe/iso-639
```

For older PHP version:

```
composer require matriphe/iso-639:1.3
```

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- **Optional**: `ext-mbstring` extension for better multibyte character support

The library will work without the `mbstring` extension, but for optimal handling of multibyte characters (like accented characters, Cyrillic, Arabic, etc.) in language names, it's recommended to install the `mbstring` extension.

Usage Example
-------------

[](#usage-example)

```
