Skip to content

TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII

License

Notifications You must be signed in to change notification settings

koftikes/transliteration-helper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transliterator Helper for Yii 1.1.*

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'));

About

TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%