PHP code example of dastanaron / yii2-translit

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

    

dastanaron / yii2-translit example snippets


use dastanaron\translit\Translit;

$str = 'Привет МИР';

$translit = new Translit();

echo $translit->translit($str, true, 'ru-en');


php composer.phar