vercoutere / lingua
Easily find (English or native) language names by their ISO 639-1 language code.
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/vercoutere/lingua
Requires (Dev)
- phpspec/phpspec: ^2.2@dev
This package is auto-updated.
Last update: 2025-10-19 09:28:26 UTC
README
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