What is a package for Laravel 4 for transliteration of Russian in Latin?

Good afternoon.
Anyone know of any package for Laravel 4 for transliteration of Russian in Latin?

October 3rd 19 at 01:58
3 answers
October 3rd 19 at 02:00
Solution

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;
}

Thank you. A curious decision. Let's try it. - davin.Schroeder commented on October 3rd 19 at 02:03
Transliterator - not very well suited to the transliteration of some letters such as "x" is "h" and the right "kh" - Albin_Mante commented on October 3rd 19 at 02:06
October 3rd 19 at 02:02
And on packagist did not try to enter?

https://packagist.org/packages/jbroadway/urlify

Russian language support. Set a regular for laravel means (composer).
October 3rd 19 at 02:04

Find more questions by tags PHPLaravel