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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?