1. Go to this page and download the library: Download josantonius/language-code 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/ */
josantonius / language-code example snippets
public static function all(): array;
public static function getCode(string $languageName): string|null;
public static function getName(string $languageCode): string|null;
public static function all(): array
public static function getCode(string $languageName): string|null
public static function getName(string $languageCode): string|null
use Josantonius\LanguageCode\LanguageCode;
$languageCode = new LanguageCode();
$languageCode->all();
use Josantonius\LanguageCode\LanguageCodeCollection;
LanguageCodeCollection::all();