paiv/uklatn

Ukrainian Cyrillic transliteration to Latin script

Fund package maintenance!
Patreon
Other

1.16.0 2024-11-23 14:10 UTC

This package is not auto-updated.

Last update: 2024-12-22 13:03:49 UTC


README

Ukrainian Cyrillic transliteration to Latin script.

Supported transliteration schemes:

Install

Add package dependency:

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);

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.