src/Transliterator.php
public function make(string $text): string
    {
        $map = $this->getMap();
        $transliterated = str_replace(array_keys($map), array_values($map), $text);

        if (true === config('transliterate.remove_accents', false)) {
            $transliterator = IntlTransliterator::create('Any-Latin; Latin-ASCII');
            $transliterated = $transliterator->transliterate($transliterated);
        }

        return self::applyTransformers($transliterated);
    }
public function make(string $text): string
    {
        $map = $this->getMap();
        $transliterated = str_replace(array_keys($map), array_values($map), $text);

        if (true === config('transliterate.remove_accents', false)) {
            $transliterator = IntlTransliterator::create('Any-Latin; Latin-ASCII');
            $transliterated = $transliterator->transliterate($transliterated);
        }

        return self::applyTransformers($transliterated);
    }
public function make ( string $ text ) : string { $ map = $ this -> getMap ( ) ; $ transliterated = str_replace ( array_keys ( $ map ) , array_values ( $ map ) , $ text ) ; if ( true === config ( 'transliterate.remove_accents' , false ) ) { $ transliterator = IntlTransliterator :: create ( 'Any-Latin; Latin-ASCII' ) ; $ transliterated = $ transliterator -> transliterate ( $ transliterated ) ; } return self :: applyTransformers ( $ transliterated ) ; }
Transliterate the given string.

@param string $text

@return string
Transliterate the given string .