vercoutere/lingua

Easily find (English or native) language names by their ISO 639-1 language code.

0.0.1 2015-10-13 13:59 UTC

This package is auto-updated.

Last update: 2024-05-19 06:17:27 UTC


README

No Maintenance Intended Build Status Total Downloads License

Lingua is a simple library that links language codes to language names in both English and the corresponding language's native translation.

Usage

Install using composer.

composer require vercoutere/lingua

Create a new instance.

use \Lingua\Language;

$lingua = new Language;

Use the availlable functions.

$language = $lingua->getLanguageByCode('en');
$language = $lingua->getLanguageByName('german');
$language = $lingua->getLanguageByNativeName('nederlands');

License

This library is open sourced software licensed under the MIT license