Skip to content

perevoshchikov/iuliia-php

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Iuliia

Software License Latest Version on Packagist Build Status

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.

About

Transliterate Cyrillic → Latin in every possible way

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages