2amigos/transliterator-helper

This package is abandoned and no longer maintained. No replacement package was suggested.

Transliterator Helper for Yii 1.*.

Installs: 13 006

Dependents: 1

Suggesters: 0

Security: 0

Stars: 5

Watchers: 6

Forks: 2

Open Issues: 0

Type:yii-extension

dev-master 2014-01-08 17:37 UTC

This package is auto-updated.

Last update: 2023-08-16 02:43:35 UTC


README

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