PHPackages                             sheronov\_v2/php-mystem - 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. sheronov\_v2/php-mystem

ActiveProject[Utility &amp; Helpers](/categories/utility)

sheronov\_v2/php-mystem
=======================

A PHP wrapper for Yandex MyStem program

01PHP

Since Apr 25Pushed 2y agoCompare

[ Source](https://github.com/Yarcrazy/Php-MyStem_v2)[ Packagist](https://packagist.org/packages/sheronov_v2/php-mystem)[ RSS](/packages/sheronov-v2-php-mystem/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Php-MyStem
==========

[](#php-mystem)

A PHP wrapper for Yandex MyStem program

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

[](#installation)

1. Add the github repo:

```
composer config repositories.php-mystem vcs https://github.com/sheronov/php-mystem

```

2. Require the package

```
composer require sheronov/php-mystem

```

3. On first launch, the package will download mystem binaries from yandex, but you can do it manually

```
 ./vendor/bin/mystem-downloader.php

```

By default, it downloads all mystem binaries for Windows, Linux and macOS.
If you want download only for one system, please provide an argument:

- -l - bin for Linux
- -w - exe for Windows
- -m - bin for Macos

Usage
-----

[](#usage)

**lemmatization** (Приведение словоформы к лемме — её нормальной (словарной) форме.)

```
use Sheronov\PhpMyStem\MyStem;

MyStem::lemma('Бегущий'); //бежать

MyStem::lemmatization('Бегущий по лезвию'); /* array (
  0 =>
  array (
    'text' => 'Бегущий',
    'lemma' => 'бежать',
    'weight' => 1,
    'gram' => 'V,нп=(непрош,вин,ед,прич,полн,муж,несов,действ,неод|непрош,им,ед,прич,полн,муж,несов,действ)',
    'part_letter' => 'V',
    'part_more' => 'verb',
    'wrong' => false,
  ),
  1 =>
  array (
    'text' => 'по',
    'lemma' => 'по',
    'weight' => 1,
    'gram' => 'PR=',
    'part_letter' => 'PR',
    'part_more' => 'preposition',
    'wrong' => false,
  ),
  2 =>
  array (
    'text' => 'лезвию',
    'lemma' => 'лезвие',
    'weight' => 1,
    'gram' => 'S,сред,неод=дат,ед',
    'part_letter' => 'S',
    'part_more' => 'noun',
    'wrong' => false,
  ),
)
*/
```

**Raw binary run** with custom arguments from Yandex docs

```
\Sheronov\PhpMyStem\MyStem::run($someText, ['--weight', '-gi']); // unprepared decoded array from json
```

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 92.6% 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://www.gravatar.com/avatar/55369a59423e8bfce72591cd44d587604a8dcf94f1f394e0a178065250531f33?d=identicon)[Yarcrazy](/maintainers/Yarcrazy)

---

Top Contributors

[![sheronov](https://avatars.githubusercontent.com/u/15803126?v=4)](https://github.com/sheronov "sheronov (25 commits)")[![Yarcrazy](https://avatars.githubusercontent.com/u/42836138?v=4)](https://github.com/Yarcrazy "Yarcrazy (2 commits)")

### Embed Badge

![Health badge](/badges/sheronov-v2-php-mystem/health.svg)

```
[![Health](https://phpackages.com/badges/sheronov-v2-php-mystem/health.svg)](https://phpackages.com/packages/sheronov-v2-php-mystem)
```

PHPackages © 2026

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