anper / iuliia
Transliterate Cyrillic → Latin in every possible way.
Installs: 10 270
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: ^7.3||^8.0
- ext-mbstring: *
Requires (Dev)
- ext-json: *
- phpstan/phpstan: ^1.4
- phpunit/phpunit: ^7.0||^8.0||^9.0
- squizlabs/php_codesniffer: ^3.6
README
Transliterate Cyrillic → Latin in every possible way
This is the port of the incredible js library iuliia.
Why use Iuliia
- 20 transliteration schemas (rule sets), including all main international and Russian standards.
- Correctly implements not only the base mapping, but all the special rules for letter combinations and word endings (AFAIK, Iuliia is the only library which does so).
- Simple API and zero third-party dependencies.
Install
$ composer require anper/iuliia
Usage
use Anper\Iuliia\Iuliia; echo Iuliia::translate('Юлия Щеглова', Iuliia::ICAO_DOC_9303); // Iuliia Shcheglova echo Iuliia::translate('Юлия Щеглова', Iuliia::WIKIPEDIA); // Yuliya Shcheglova
Test
$ composer test
Development
schemas
folder is the git submodule from general repository. You can add schemes manually and use building to generate code:
$ composer build
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.