Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII

License

Notifications You must be signed in to change notification settings

2amigos/transliteration-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TransliteratorHelper for Yii 1

TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII

Installation

The preferred way to install this extension is through composer.

If you are looking for Yii 2.* version please check its own repository

Either run

php composer.phar require 2amigos/transliterator-helper "1.0.*"

or add

"2amigos/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'));

2amigOS!
web development has never been so fun
www.2amigos.us

About

TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages