PHP code example of unnutz / php-lcid

1. Go to this page and download the library: Download unnutz/php-lcid 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/ */

    

unnutz / php-lcid example snippets


Lcid::get($language, $region = null, $script = null, $variant = null, $sort = \Unnutz\PhpLcid\Enums\Sort::SORT_DEFAULT);

Lcid::getByLocale($locale, $sort = \Unnutz\PhpLcid\Enums\Sort::SORT_DEFAULT);

Lcid::findLocale($lcid, $returnArray = false)

function __construct(LcidInterface $lcid)
{
    $this->lcid = $lcid;
}


$lcid = new \Unnutz\PhpLcid\Lcid;