yii2-transliterator-helper

TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII

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

Github星跟蹤圖

TransliteratorHelper for Yii 2

Latest Stable Version Total Downloads Latest Unstable Version License

TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII.

For a Yii 1.* version, please check this other repository.

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"2amigos/yii2-transliterator-helper": "*"

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\transliterator\TransliteratorHelper;

// will echo AAAAAAAECEEEEIIIIDNOOOOOUUUUYssaaaaaaaeceeeeiiiidnooooouuuuyy
TransliteratorHelper::process('ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöùúûüýÿ', '', 'en');

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

主要指標

概覽
名稱與所有者2amigos/yii2-transliterator-helper
主編程語言PHP
編程語言PHP (語言數: 1)
平台
許可證Other
所有者活动
創建於2014-01-08 07:13:59
推送於2017-06-20 17:03:00
最后一次提交2017-06-20 17:23:26
發布數2
最新版本名稱1.0.0 (發布於 2017-06-20 19:02:54)
第一版名稱0.1.0 (發布於 2014-04-20 13:01:53)
用户参与
星數26
關注者數22
派生數13
提交數23
已啟用問題?
問題數2
打開的問題數0
拉請求數2
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?