This transliteration component is used mainly for the transliteration of strings in the Russian language by the rules which are well understood Yandex, and used to improve SEO.
The preferred way to install this extension is through composer.
Navigate to the project folder and run the console command:
$ composer require inblank/yii2-transliter
require section of your
In the application configuration file in section
components add the lines:
'transliter' => [ 'class' => 'inblank\transliter\Transliter', ],
As with all components in Yii2 you can set your parameters for the class.
To transliterate of the string simple run:
$result = Yii::$app->transliter->translate($str);