Good afternoon.
Anyone know of any package for Laravel 4 for transliteration of Russian in Latin?
The special bundle is not found, but can write it with 0. Alternatively, here is a method-helper for php 5.4 and above:
public static function transliterate($string)
{
$transliterator = \Transliterator::create('latin; NFKD; [^\u0000-\u007E] Remove; NFC');
$transliterated = $transliterator->transliterate($string);
$transliterated = preg_replace('/[^a-zA-Z]/', '_', $transliterated);
$transliterated = trim($transliterated, '_');
return $transliterated;
}