transliteration-helper

TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII

  • Owner: 2amigos/transliteration-helper
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With Owner2amigos/transliteration-helper
Primary LanguagePHP
Program languagePHP (Language Count: 1)
Platform
License:Other
所有者活动
Created At2013-12-26 21:23:26
Pushed At2014-01-08 17:37:55
Last Commit At2014-01-08 18:37:55
Release Count1
Last Release Name1.0.0 (Posted on 2014-01-08 15:43:32)
First Release Name1.0.0 (Posted on 2014-01-08 15:43:32)
用户参与
Stargazers Count5
Watchers Count6
Fork Count2
Commits Count28
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private