fresh/transliteration
最新稳定版本:v4.0.1
Composer 安装命令:
composer require fresh/transliteration
包简介
PHP library for transliteration.
README 文档
README
PHP library for transliteration. ???????? ???????? ???? ????
Requirements ????
- PHP >= 8.1
Installation ????
composer req fresh/transliteration='~4.0'
Available transliteration methods ????
| 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 |
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 ℹ️
| Ukrainian text | Transliterated text |
|---|---|
| Володимир | Volodymyr |
| Богдан | Bohdan |
| Жанна | Zhanna |
| Наталія | Nataliia |
| Олексій | Oleksii |
| Уляна | Uliana |
| Юрій | Yurii |
Contributing ????
See CONTRIBUTING file.
统计信息
- 总下载量: 128.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 54
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 未知