PHPackages                             sbs/yii2-transliterator-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sbs/yii2-transliterator-helper

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

sbs/yii2-transliterator-helper
==============================

The transliterator helper for the Yii 2 framework

0.3.3(6y ago)0674BSD-3-ClausePHP

Since Jan 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/koftikes/yii2-transliterator-helper)[ Packagist](https://packagist.org/packages/sbs/yii2-transliterator-helper)[ Docs](https://github.com/koftikes/yii2-transliterator-helper)[ RSS](/packages/sbs-yii2-transliterator-helper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (9)Used By (0)

Transliterator Helper for Yii 2
===============================

[](#transliterator-helper-for-yii-2)

[![Build Status](https://camo.githubusercontent.com/a650873b406676ae2c37525a4522f392b2f172482a2ef8381b934b3ec694518e/68747470733a2f2f7472617669732d63692e636f6d2f6b6f6674696b65732f796969322d7472616e736c6974657261746f722d68656c7065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/koftikes/yii2-transliterator-helper)

Transliterator Helper transliterates UTF-8 encoded text to US-ASCII.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require sbs/yii2-transliterator-helper
```

or add

```
"sbs/yii2-transliterator-helper": "*"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

Pass to the method `process()` the UTF-8 encoded string you wish to transliterate:

```
use sbs\helpers\TransliteratorHelper;

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

```

You can use it as application behavior:

```
use sbs\behaviors\SlugBehavior;

//...
public function behaviors()
{
    return [
        //...
        [
            'class' => SlugBehavior::class,
            'attribute' => 'title',
            'slugAttribute' => 'slug',
        ],
    ];
}

```

#### Since version 0.3 you can use SlugInput widget:

[](#since-version-03-you-can-use-sluginput-widget)

**Configurations:**

You need a registration controller in your main config file in section `controllerMap`:

```
use sbs\controllers\TransliterationController;

//...
'controllerMap' => [
    'transliteration' => [
        'class' => TransliterationController::class,
        'lowercase' => false //provides transliteration to lower case, true by default.
    ]
],
//...
```

**Like a widget:**

```
use sbs\widgets\SlugInput;

echo SlugInput::widget([
    'name' => 'News[slug]',
    'sourceName' => 'News[title]'
]);
```

**Like an ActiveForm widget:**

```
use sbs\widgets\SlugInput;

echo $form->field($model, 'slug')->widget(SlugInput::class, [
    'sourceAttribute' => 'title'
]);
```

That's all. Enjoy.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~325 days

Recently: every ~178 days

Total

7

Last Release

2546d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d8acd1bf57b933c4d4762bb007b9080ec1900118bd2d8f288afa7c5adc8103a?d=identicon)[koftikes](/maintainers/koftikes)

---

Top Contributors

[![koftikes](https://avatars.githubusercontent.com/u/8553840?v=4)](https://github.com/koftikes "koftikes (12 commits)")

---

Tags

helpertransliteratorextensionyii

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sbs-yii2-transliterator-helper/health.svg)

```
[![Health](https://phpackages.com/badges/sbs-yii2-transliterator-helper/health.svg)](https://phpackages.com/packages/sbs-yii2-transliterator-helper)
```

###  Alternatives

[kartik-v/yii2-helpers

A collection of useful helper functions for Yii Framework 2.0

883.0M29](/packages/kartik-v-yii2-helpers)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
