1. Go to this page and download the library: Download gmo/iso-639 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gmo / iso-639 example snippets
use Gmo\Iso639\Languages;
$languages = new Languages();
$english = $languages->findByName('English');
echo $english->code1(); // en
echo $english->code2t(); // eng
echo $english->code2b(); // eng
echo $english->code3(); // eng
echo $english->name(); // English
$languages->findByCode3('eng')->code1(); // en
$languages->findByCode1('en')->code3(); // eng
foreach ($languages as $language) {
echo $language->name();
}
$languages->getLanguages();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.