PHPackages                             slawap/yii2-morpher - 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. slawap/yii2-morpher

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

slawap/yii2-morpher
===================

Yii2 Morpher

1.0.1(8y ago)08MITPHPPHP &gt;=5.4.0

Since Jun 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/slawap/yii2-morpher)[ Packagist](https://packagist.org/packages/slawap/yii2-morpher)[ Docs](https://github.com/slawap/yii2-morpher)[ RSS](/packages/slawap-yii2-morpher/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Yii2-morpher
============

[](#yii2-morpher)

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

[](#installation)

[![Latest Stable Version](https://camo.githubusercontent.com/d388e862b208d574543b91be3016b4b810e907ae8000cc5e3ae6af058426641d/68747470733a2f2f706f7365722e707567782e6f72672f736c617761702f796969322d6d6f72706865722f76657273696f6e)](https://packagist.org/packages/slawap/yii2-morpher)[![Total Downloads](https://camo.githubusercontent.com/daea1b3f95d3408c2792fdf0efae5baaac0a8e4d849e50d2ea863e807ee7a058/68747470733a2f2f706f7365722e707567782e6f72672f736c617761702f796969322d6d6f72706865722f646f776e6c6f616473)](https://packagist.org/packages/slawap/yii2-morpher)[![Latest Unstable Version](https://camo.githubusercontent.com/fd1da3f9c76f0c48021101f2220a93821c82663c47525e8fddb005e7caaae002/68747470733a2f2f706f7365722e707567782e6f72672f736c617761702f796969322d6d6f72706865722f762f756e737461626c65)](//packagist.org/packages/slawap/yii2-morpher)[![License](https://camo.githubusercontent.com/dfff6d51ee868a01b42d44a9f981c326fa2693caa8609c077ab57b20cc4e9668/68747470733a2f2f706f7365722e707567782e6f72672f736c617761702f796969322d6d6f72706865722f6c6963656e7365)](https://packagist.org/packages/slawap/yii2-morpher)[![composer.lock available](https://camo.githubusercontent.com/98fccdd1506993c2954a887997f6468630d538f8af3a3f4ff0dba6cadca5741a/68747470733a2f2f706f7365722e707567782e6f72672f736c617761702f796969322d6d6f72706865722f636f6d706f7365726c6f636b)](https://packagist.org/packages/slawap/yii2-morpher)

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

Either run

```
composer require --prefer-dist slawap/yii2-morpher

```

or add

```
"slawap/yii2-morpher": "*"
```

to the `require` section of your composer.json.

Usage
-----

[](#usage)

```
'components' => [
   // ...
    'morpher' => [
        'class' => 'slawap\morpher\Morpher'
    ]
    // ...
 ]
```

Get all case;

```
    Yii::$app->morpher
        ->setQuery('Санкт-Петербург')
    ->getData();

     /*result
     Array
     (
         [Р] => Санкт-Петербурга
         [Д] => Санкт-Петербургу
         [В] => Санкт-Петербург
         [Т] => Санкт-Петербургом
         [П] => Санкт-Петербурге
         [множественное] => Array
             (
                 [И] => Санкт-Петербурги
                 [Р] => Санкт-Петербургов
                 [Д] => Санкт-Петербургам
                 [В] => Санкт-Петербурги
                 [Т] => Санкт-Петербургами
                 [П] => Санкт-Петербургах
             )

     ); */
```

Get case;

```
    echo Yii::$app->morpher
        ->setQuery('Санкт-Петербург')
        ->setCase(Morpher::PREPOSITIONAL)
    ->getData();
    //result 'Санкт-Петербурге'
```

Get plural case;

```
    echo Yii::$app->morpher
        ->setQuery('Санкт-Петербург')
        ->setCase(Morpher::PREPOSITIONAL)
        ->setPlural()
    ->getData();

    //result Санкт-Петербургах
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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

Unknown

Total

1

Last Release

3255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d265212707a852502a3c94ea8b468c40bb4643256c1707770ef547d15158b0c0?d=identicon)[slawap](/maintainers/slawap)

---

Top Contributors

[![slawap](https://avatars.githubusercontent.com/u/946466?v=4)](https://github.com/slawap "slawap (3 commits)")[![ignatenkovnikita](https://avatars.githubusercontent.com/u/4436320?v=4)](https://github.com/ignatenkovnikita "ignatenkovnikita (1 commits)")

---

Tags

yii2yiiyii 2casesmorpher

### Embed Badge

![Health badge](/badges/slawap-yii2-morpher/health.svg)

```
[![Health](https://phpackages.com/badges/slawap-yii2-morpher/health.svg)](https://phpackages.com/packages/slawap-yii2-morpher)
```

PHPackages © 2026

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