PHPackages                             aleksender/yii2-morphy - 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. aleksender/yii2-morphy

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

aleksender/yii2-morphy
======================

Morphological analyze package for Yii2 Framework based on phpMorphy

1.0(6y ago)16551MITPHPPHP &gt;=5.4.0

Since Sep 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/aleksender/yii2-morphy)[ Packagist](https://packagist.org/packages/aleksender/yii2-morphy)[ RSS](/packages/aleksender-yii2-morphy/feed)WikiDiscussions master Synced 1mo ago

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

yii2-morphy
===========

[](#yii2-morphy)

[![GitHub tag](https://camo.githubusercontent.com/d671488dbb21392822213f83fc7d61667c833d5a463f12e87f0f0ce8ae797d87/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f616c656b73656e6465722f796969322d6d6f727068792e7376673f6c6162656c3d6c6174657374)](https://packagist.org/packages/aleksender/yii2-morphy)

Morphological analyze package for Yii2 Framework based on phpMorphy

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

[](#installation)

To install the library in your project using `Composer`, first add the following to your `composer.json`config file:

```
{
    "require": {
        "aleksender/yii2-morphy": "~1.0"
    }
}

```

Then run Composer's install or update commands to complete installation.

Or you can install from a command line:

```
composer require aleksender/yii2-morphy

```

Usage
-----

[](#usage)

Completely similar phpMorphy.

```
$morphy = new \aleksender\morphy\PhpMorphy();
$word = "КОТ";

if ($paradigms = $morphy->findWord($word)) {
    foreach ($paradigms as $paradigm) {
        foreach ($paradigm as $form) {
            echo $form->getWord() . "\n";
        }
    }
}
```

Or you can use like component:

- config/main.php

```
[
    ...
    'components' => [
        ...
        'morphy' => [
            'class' => \aleksender\morphy\PhpMorphy::class,
            'lang' => 'ru',
        ],
        ...

    ],
    ...
]
```

```
$morphy = Yii::$app->morphy;
$word = "КОТ";

if ($paradigms = $morphy->findWord($word)) {
    foreach ($paradigms as $paradigm) {
        foreach ($paradigm as $form) {
            echo $form->getWord() . "\n";
        }
    }
}
```

You also can see documentation of usage [here](http://phpmorphy.sourceforge.net/dokuwiki/manual).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

2442d ago

### Community

Maintainers

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

---

Tags

morphologyphpmorphyMorphyyii2-morphyyii2morphy

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aleksender-yii2-morphy/health.svg)

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

###  Alternatives

[wapmorgan/morphos

A morphological solution for Russian and English language written completely in PHP. Provides classes to inflect personal names, geographical names, decline and pluralize nouns, generate cardinal and ordinal numerals, spell out money amounts and time.

8351.3M7](/packages/wapmorgan-morphos)[cijic/phpmorphy

phpMorphy - morphological analyzer library for Russian, English, German and Ukrainian languages.

115339.9k7](/packages/cijic-phpmorphy)[maxakawizard/phpmorphy

phpMorphy - morphological analyzer library for Russian, English and German languages

1398.5k1](/packages/maxakawizard-phpmorphy)

PHPackages © 2026

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