Transliterate Cyrillic → Latin in every possible way.
Transliterate Cyrillic → Latin in every possible way
This is the port of the incredible js library 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.
$ composer require anper/iuliia
use Anper\Iuliia\Iuliia; echo Iuliia::translate('Юлия Щеглова', Iuliia::ICAO_DOC_9303); // Iuliia Shcheglova echo Iuliia::translate('Юлия Щеглова', Iuliia::WIKIPEDIA); // Yuliya Shcheglova
$ composer test
schemas folder is the git submodule from general repository. You can add schemes manually and use building to generate code:
$ composer build
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.