Lingua is a simple library that links language codes to language names in both English and the corresponding language's native translation.
Install using composer.
composer require vercoutere/linguaCreate 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');This library is open sourced software licensed under the MIT license