PHP code example of shoyim / latin-to-cyrillic

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

    

shoyim / latin-to-cyrillic example snippets


use Shoyim\LatinToCyrillic\Converter;

$c = new Converter();

$c->toLatin("Ўзбекистон");        // "O'zbekiston"
$c->toCyrillic("O'zbekiston");    // "Ўзбекистон"
$c->toNewLatin("Ўзбекистон");     // "Özbekiston"
$c->fromNewLatin("Özbekiston");   // "O'zbekiston"

use Shoyim\LatinToCyrillic\Facades\LatinCyrillic;

LatinCyrillic::toCyrillic("Maktab");                  // "Мактаб"
LatinCyrillic::toNewLatin("Chiroyli bog'");           // "Çiroyli boğ"