PHP code example of victoria-babikova / translit-composer-package
1. Go to this page and download the library: Download victoria-babikova/translit-composer-package 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/ */
victoria-babikova / translit-composer-package example snippets
$translit_service = new TranslitService();
echo $translit_service->translit_to_en('привет мир'); // privet-mir
echo $translit_service->translit_to_ru('privet-mir'); // привет, мир