定制 2amigos/yii2-transliterator-helper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

2amigos/yii2-transliterator-helper

最新稳定版本:1.0.0

Composer 安装命令:

composer require 2amigos/yii2-transliterator-helper

包简介

Transliterator Helper for Yii2.

README 文档

README

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

统计信息

  • 总下载量: 247.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 26
  • 点击次数: 1
  • 依赖项目数: 25
  • 推荐数: 0

GitHub 信息

  • Stars: 26
  • Watchers: 23
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-01-08