paiv/uklatn

Ukrainian Cyrillic transliteration to Latin script

Maintainers

Package info

github.com/paiv/uklatn-php

Homepage

pkg:composer/paiv/uklatn

Fund package maintenance!

Patreon

Other

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

1.20.0 2024-12-25 16:01 UTC

This package is not auto-updated.

Last update: 2026-03-04 22:37:06 UTC


README

Ukrainian Cyrillic transliteration to Latin script.

Supported transliteration schemes:

Usage

use Paiv\UkrainianLatin;

$tr = new UkrainianLatin();

$tr->encode('Доброго вечора!');
$tr->decode('Paljanycja');

Set the transliteration scheme:

$tr->encode('Доброго вечора!', UkrainianLatin::DSTU_9112_B);
$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.