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

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

sevenfloor/yii2-morpher
=======================

Yii2 Morpher

1691PHP

Since Apr 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/SevenFloor/yii2-morpher)[ Packagist](https://packagist.org/packages/sevenfloor/yii2-morpher)[ RSS](/packages/sevenfloor-yii2-morpher/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

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

[](#yii2-morpher)

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

[](#installation)

[![Latest Stable Version](https://camo.githubusercontent.com/f1b2651cc36f02e0a435a694cd9e274cc3c4325bf52c89179c712c788e00c405/68747470733a2f2f706f7365722e707567782e6f72672f736576656e666c6f6f722f796969322d6d6f72706865722f76657273696f6e)](https://packagist.org/packages/sevenfloor/yii2-morpher)[![Total Downloads](https://camo.githubusercontent.com/ea10ffd449d7ee06039cf915c6ba36ae6308dc5c8e13359773ab4eeebcd8f9ff/68747470733a2f2f706f7365722e707567782e6f72672f736576656e666c6f6f722f796969322d6d6f72706865722f646f776e6c6f616473)](https://packagist.org/packages/sevenfloor/yii2-morpher)[![Latest Unstable Version](https://camo.githubusercontent.com/6f8685d94d87782ebcc4d4742fabf3fc0ffd3eee31484e9029cc5a8ff7f67134/68747470733a2f2f706f7365722e707567782e6f72672f736576656e666c6f6f722f796969322d6d6f72706865722f762f756e737461626c65)](//packagist.org/packages/sevenfloor/yii2-morpher)[![License](https://camo.githubusercontent.com/98964d1e37bc389ed60b89114c01c2b499c706fd01452ea316b8411e2a3af643/68747470733a2f2f706f7365722e707567782e6f72672f736576656e666c6f6f722f796969322d6d6f72706865722f6c6963656e7365)](https://packagist.org/packages/sevenfloor/yii2-morpher)[![composer.lock available](https://camo.githubusercontent.com/c8774e28fbe4c97a71a634a1a5a082913a267665a7c995572cea4ec1121100a0/68747470733a2f2f706f7365722e707567782e6f72672f736576656e666c6f6f722f796969322d6d6f72706865722f636f6d706f7365726c6f636b)](https://packagist.org/packages/sevenfloor/yii2-morpher)

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

Either run

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

```

or add

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

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

Usage
-----

[](#usage)

```
'components' => [
   // ...
    'morpher' => [
        'class' => 'sevenfloor\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

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4436320?v=4)[Nikita Ignatenkov](/maintainers/ignatenkovnikita)[@ignatenkovnikita](https://github.com/ignatenkovnikita)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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