transliteration-helper

TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII

  • 所有者: 2amigos/transliteration-helper
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者2amigos/transliteration-helper
主編程語言PHP
編程語言PHP (語言數: 1)
平台
許可證Other
所有者活动
創建於2013-12-26 21:23:26
推送於2014-01-08 17:37:55
最后一次提交2014-01-08 18:37:55
發布數1
最新版本名稱1.0.0 (發布於 2014-01-08 15:43:32)
第一版名稱1.0.0 (發布於 2014-01-08 15:43:32)
用户参与
星數5
關注者數6
派生數2
提交數28
已啟用問題?
問題數0
打開的問題數0
拉請求數0
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?