2amigos/yii2-transliterator-helper
最新稳定版本:1.0.0
Composer 安装命令:
composer require 2amigos/yii2-transliterator-helper
包简介
Transliterator Helper for Yii2.
README 文档
README
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');
Web development has never been so fun! www.2amigos.us
统计信息
- 总下载量: 247.01k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 26
- 点击次数: 1
- 依赖项目数: 25
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-01-08