yii2-transliterator-helper

TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII

  • Owner: 2amigos/yii2-transliterator-helper
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With Owner2amigos/yii2-transliterator-helper
Primary LanguagePHP
Program languagePHP (Language Count: 1)
Platform
License:Other
所有者活动
Created At2014-01-08 07:13:59
Pushed At2017-06-20 17:03:00
Last Commit At2017-06-20 17:23:26
Release Count2
Last Release Name1.0.0 (Posted on 2017-06-20 19:02:54)
First Release Name0.1.0 (Posted on 2014-04-20 13:01:53)
用户参与
Stargazers Count26
Watchers Count22
Fork Count13
Commits Count23
Has Issues Enabled
Issues Count2
Issue Open Count0
Pull Requests Count2
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private