PHP code example of astrotomic / iso639
1. Go to this page and download the library: Download astrotomic/iso639 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/ */
astrotomic / iso639 example snippets
use Astrotomic\ISO639\ISO639;
$iso639 = new ISO639();
// dataset methods
$iso639->count();
$iso639->all();
$iso639->all(ISO639::KEY_639_1);
$iso639->iterator(ISO639::KEY_639_1);
// language retriever
$iso639->name('German');
$iso639->alpha2('de');
// ISO specific methods
$iso639->iso639_1('de');
$iso639->iso639_2B('ger');
$iso639->iso639_2T('deu');