PHPackages                             anzu20/math-expression-executor - 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. anzu20/math-expression-executor

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

anzu20/math-expression-executor
===============================

v1.0(6y ago)013[1 PRs](https://github.com/anzu20/math-expression-executor/pulls)MITPHPPHP &gt;=7.2CI failing

Since Sep 3Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/anzu20/math-expression-executor)[ Packagist](https://packagist.org/packages/anzu20/math-expression-executor)[ RSS](/packages/anzu20-math-expression-executor/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

Исполнитель математических выражений
====================================

[](#исполнитель-математических-выражений)

### Установка

[](#установка)

#### Через Composer

[](#через-composer)

Выполните команду

`composer require --dev anzu20/math-expression-executor`

Или добавьте

`"anzu20/math-expression-executor": "*"`

в секцию require вашего файла `composer.json`

#### Вручную

[](#вручную)

Скачайте архив проекта и поместите содержимое каталога lib в ваш проект Подключте автозагрузку

`require __DIR__ . '/autoload.php'; `

### Использование

[](#использование)

Библиотека работает по нескольким принципам:

1. Выражение содержит только бинарные операции + - \* /
2. Выражение содержит только однозначные числа
3. Выражение не содержит унарных операций (например, -1)

Пример использования:

```
$expr = new RPNExecutor();
$expr->calculate('2+2+2');
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance54

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2444d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12909062?v=4)[anzu20](/maintainers/anzu20)[@anzu20](https://github.com/anzu20)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anzu20-math-expression-executor/health.svg)

```
[![Health](https://phpackages.com/badges/anzu20-math-expression-executor/health.svg)](https://phpackages.com/packages/anzu20-math-expression-executor)
```

###  Alternatives

[symfony/workflow

Provides tools for managing a workflow or finite state machine

62842.3M170](/packages/symfony-workflow)[mikestecker/craft-videoembedder

Craft plugin to generate an embed URL from a YouTube or Vimeo URL.

1799.3k1](/packages/mikestecker-craft-videoembedder)[prestashop/cronjobs

PrestaShop module cronjobs

212.4k](/packages/prestashop-cronjobs)[stubbles/core

103.4k1](/packages/stubbles-core)

PHPackages © 2026

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