paiv / uklatn
Ukrainian Cyrillic transliteration to Latin script
1.16.0
2024-11-23 14:10 UTC
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ^8.0
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.