PHP code example of umpirsky / transliterator

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

    

umpirsky / transliterator example snippets



$transliterator = new Transliterator(Settings::LANG_RU);
$transliterator->cyr2Lat('Русский');                        // 'Russkij'
$transliterator->lat2Cyr('Russkij');                        // 'Русский'

$transliterator->setLang(Settings::LANG_SR);
$transliterator->cyr2Lat('Ниш');                            // 'Niš'
$transliterator->lat2Cyr('Niš');                            // 'Ниш'