PHPackages                             chumakovanton/calculator - 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. chumakovanton/calculator

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

chumakovanton/calculator
========================

Calculator string expression

v1.0.4(7y ago)01MITPHPPHP ~7.2

Since Mar 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ChumakovAnton/Calculator)[ Packagist](https://packagist.org/packages/chumakovanton/calculator)[ Docs](https://github.com/ChumakovAnton/calculator)[ RSS](/packages/chumakovanton-calculator/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (7)Used By (0)

Calculator
==========

[](#calculator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7decaad7571312fb9c5ed9d8a6c5eaa2228fe4ed82e317971416eef10e8b4b66/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368756d616b6f76616e746f6e2f63616c63756c61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chumakovanton/calculator)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/8b3d4e18f01988418866289c281fbeac892301d8430613e3cf9177a856618926/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4368756d616b6f76416e746f6e2f43616c63756c61746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ChumakovAnton/Calculator)[![Coverage Status](https://camo.githubusercontent.com/bb360c37a4f8e2abf98950183b9519c4044a2dbadbd1d8b416e08d79b8ed8003/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6368756d616b6f76616e746f6e2f63616c63756c61746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/chumakovanton/calculator/code-structure)[![Quality Score](https://camo.githubusercontent.com/cc6dacfb56fb3ec2733a8424b4cca06652652d27c440bef9f52a7b47afba7e08/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6368756d616b6f76616e746f6e2f63616c63756c61746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/chumakovanton/calculator)[![Total Downloads](https://camo.githubusercontent.com/d252981ac3a2af41e8624a8d631aca00ae5061aa8ca68e0e670782186dd17719/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368756d616b6f76616e746f6e2f63616c63756c61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chumakovanton/calculator)

Calculator string expression.

Structure
---------

[](#structure)

If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.

```
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require chumakovanton/calculator
```

Usage
-----

[](#usage)

Sample usage

```
$calculator = new ChumakovAnton\Calculator\ExpressionCalculator();
echo $calculator->process('4+5*2-5+6/3');
```

For change implementation you need to implement ChumakovAnton\\Calculator\\Calculator interface

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Chumakov Anton](https://github.com/ChumakovAnton)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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

Every ~0 days

Total

5

Last Release

2625d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a75acbfd05642f6001f984997a9a7bd142d3530544005a2c3ac68146c01e5f2?d=identicon)[ChumakovAnton](/maintainers/ChumakovAnton)

---

Top Contributors

[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (49 commits)")[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (38 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (10 commits)")[![jotaelesalinas](https://avatars.githubusercontent.com/u/2042875?v=4)](https://github.com/jotaelesalinas "jotaelesalinas (8 commits)")[![hansott](https://avatars.githubusercontent.com/u/3886384?v=4)](https://github.com/hansott "hansott (7 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (7 commits)")[![gmponos](https://avatars.githubusercontent.com/u/5675248?v=4)](https://github.com/gmponos "gmponos (7 commits)")[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (6 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (5 commits)")[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (5 commits)")[![reinink](https://avatars.githubusercontent.com/u/882133?v=4)](https://github.com/reinink "reinink (5 commits)")[![browner12](https://avatars.githubusercontent.com/u/5232313?v=4)](https://github.com/browner12 "browner12 (5 commits)")[![marcqualie](https://avatars.githubusercontent.com/u/101022?v=4)](https://github.com/marcqualie "marcqualie (4 commits)")[![hassankhan](https://avatars.githubusercontent.com/u/1781985?v=4)](https://github.com/hassankhan "hassankhan (3 commits)")[![jclyons52](https://avatars.githubusercontent.com/u/6395559?v=4)](https://github.com/jclyons52 "jclyons52 (3 commits)")[![alexbilbie](https://avatars.githubusercontent.com/u/77991?v=4)](https://github.com/alexbilbie "alexbilbie (2 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (2 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (2 commits)")[![dragoonis](https://avatars.githubusercontent.com/u/146321?v=4)](https://github.com/dragoonis "dragoonis (2 commits)")[![kdubuc](https://avatars.githubusercontent.com/u/895661?v=4)](https://github.com/kdubuc "kdubuc (2 commits)")

---

Tags

calculatorChumakovAnton

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/chumakovanton-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/chumakovanton-calculator/health.svg)](https://phpackages.com/packages/chumakovanton-calculator)
```

###  Alternatives

[markrogoyski/ipv4-subnet-calculator

Network calculator for subnet mask and other classless (CIDR) network information.

177813.7k6](/packages/markrogoyski-ipv4-subnet-calculator)[ballen/distical

A distance (Lat/Long) calculation library for PHP

40180.2k2](/packages/ballen-distical)

PHPackages © 2026

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