PHP library for transliteration. ๐บ๐ฆ ๐ฌ๐ง ๐ก ๐
- PHP >= 8.1
composer req fresh/transliteration='~4.0'
From | To | Rules |
---|---|---|
Ukrainian | Latin |
Resolution of the Cabinet of Ministers of Ukraine โ55 dated January 27, 2010
https://zakon.rada.gov.ua/laws/show/55-2010-%D0%BF#Text |
<?php
namespace Acme;
use Fresh\Transliteration\Transliterator;
use Fresh\Transliteration\UkrainianToLatin;
class Foo
{
public function bar(string $text): void
{
// You can use in this way
$transliterator = new Transliterator();
$transliteratedText = $transliterator->ukrToLat($text);
// Or like this
$transliteratedText = UkrainianToLatin::transliterate($ukrainianText);
}
}
Ukrainian text | Transliterated text |
---|---|
ะะพะปะพะดะธะผะธั | Volodymyr |
ะะพะณะดะฐะฝ | Bohdan |
ะะฐะฝะฝะฐ | Zhanna |
ะะฐัะฐะปัั | Nataliia |
ะะปะตะบััะน | Oleksii |
ะฃะปัะฝะฐ | Uliana |
ะฎััะน | Yurii |
See CONTRIBUTING file.