fresh / transliteration
PHP library for transliteration.
Fund package maintenance!
fre5h
v4.0.0
2022-04-12 11:50 UTC
Requires
- php: >=8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- phpstan/phpstan: ^1.5
- phpstan/phpstan-phpunit: ^1.1
- phpunit/phpunit: ^9.5
- slam/phpstan-extensions: ^6.0
- squizlabs/php_codesniffer: ^3.6
- thecodingmachine/phpstan-strict-rules: ^1.0
README
PHP library for transliteration. πΊπ¦ π¬π§ π‘ π
Requirements π§
- PHP >= 8.1
Installation π±
composer req fresh/transliteration='~4.0'
Available transliteration methods π
Using π¨βπ
<?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); } }
Some examples of Ukrainian-to-Latin transliteration βΉοΈ
Contributing π€
See CONTRIBUTING file.