sbs / transliterator-helper
Transliterator Helper for Yii 1.*.
Package info
github.com/koftikes/transliteration-helper
Type:yii-extension
pkg:composer/sbs/transliterator-helper
dev-master
2017-01-01 12:58 UTC
Requires
- php: >= 5.3.0
- yiisoft/yii: 1.1.*
This package is auto-updated.
Last update: 2026-03-16 07:05:17 UTC
README
Transliterator Helper transliterates UTF-8 encoded text to US-ASCII
Adapted for PHP 5.3 by koftikes.
Installation
The preferred way to install this extension is through composer.
Either run
composer require sbs/transliterator-helper
or add
"sbs/transliterator-helper": "^1.0"
to the require section of your application's composer.json file.
Usage
Pass to the method process() the UTF-8 encoded string you wish to transliterate:
use dosamigos\yii\helpers\TransliteratorHelper;
// will echo AAAAAAAECEEEEIIIIDNOOOOOUUUUYssaaaaaaaeceeeeiiiidnooooouuuuyy
TransliteratorHelper::process('ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöùúûüýÿ', '', 'en'));