PHP package for Ukrainian Cyrillic to Latin script transliteration
Install
Add dependency to composer.json:
php composer.phar require 'paiv/uklatn'
Usage
use Paiv\UkrainianLatin;
$tr = new UkrainianLatin();
$s = $tr->encode('Доброго вечора!');
$t = $tr->decode('Paljanycja');
Select a transliteration scheme:
$tr->encode('Доброго вечора!', UkrainianLatin::DSTU_9112_A);
$tr->encode('Шевченко', UkrainianLatin::KMU_55);
Notes
Input is assumed to be in Ukrainian (Cyrillic or Latin script), and will be processed in full. If your data has mixed languages, do preprocessing to extract Ukrainian chunks.