TransliteratorHelper for Yii 1
TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
If you are looking for Yii 2.* version please check its own repository, (*3)
Either run, (*4)
php composer.phar require 2amigos/transliterator-helper "1.0.*"
or add, (*5)
"2amigos/transliterator-helper": "1.0.*"
to the require section of your application's composer.json
file., (*6)
Usage
Pass to the method process()
the UTF-8 encoded string you wish to transliterate:, (*7)
use dosamigos\yii\helpers\TransliteratorHelper;
// will echo AAAAAAAECEEEEIIIIDNOOOOOUUUUYssaaaaaaaeceeeeiiiidnooooouuuuyy
TransliteratorHelper::process('ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöùúûüýÿ', '', 'en'));
web development has never been so fun
www.2amigos.us, (*8)