PHPackages                             fubhy/math-php - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. fubhy/math-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

fubhy/math-php
==============

A lexer and parser for mathematical expressions.

v1.0(8y ago)83064[2 issues](https://github.com/fubhy/math-php/issues)MITPHPPHP &gt;=5.4.0

Since Oct 3Pushed 8y ago2 watchersCompare

[ Source](https://github.com/fubhy/math-php)[ Packagist](https://packagist.org/packages/fubhy/math-php)[ Docs](https://github.com/fubhy/math-php)[ RSS](/packages/fubhy-math-php/feed)WikiDiscussions master Synced 1mo ago

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

Math PHP
========

[](#math-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6942309b5cbeb53d809f2a6629640a152e8ef1fea93610bea84fcf557bd2abd7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66756268792f6d6174682d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fubhy/math-php)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e8d3e2e3dfa7944a0c8c4752e607dd4a35bc01d84fb675ebe444c265b6687291/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f66756268792f6d6174682d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/fubhy/math-php)[![Coverage Status](https://camo.githubusercontent.com/5787cfac1352c41f5980340a5542f0e6cd08ae070a7d550b6d042fa8c3b888b5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f66756268792f6d6174682d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fubhy/math-php/code-structure)[![Quality Score](https://camo.githubusercontent.com/8a4d44739a7e88e2140384d2aa1707d8b6374be49f27cda0e4e8d0a80c30ae77/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f66756268792f6d6174682d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fubhy/math-php)[![Insights Score](https://camo.githubusercontent.com/adf84e0c42355a4928069272e24f9ab7fb322066d07340ee03c52f3cd3952ca3/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f66616139613666372d613934342d343831662d626238312d3533653233353631666433642e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/faa9a6f7-a944-481f-bb81-53e23561fd3d)[![Total Downloads](https://camo.githubusercontent.com/51cfa036faabf48f5491f8765c9ed3416dc5628ea90946221f619bd80e8f0de8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66756268792f6d6174682d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fubhy/math-php)

A lexer and parser for mathematical expressions.

Install
-------

[](#install)

Via Composer

```
$ composer require fubhy/math-php
```

Usage
-----

[](#usage)

To be done ...

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

To be done ...

Security
--------

[](#security)

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

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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

3149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7eb3dde34e1ec06a752a90ad2d69c4e7e143e833945f665d4f803748cf33da6e?d=identicon)[fubhy](/maintainers/fubhy)

---

Top Contributors

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

---

Tags

parserlexermathcalculator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fubhy-math-php/health.svg)

```
[![Health](https://phpackages.com/badges/fubhy-math-php/health.svg)](https://phpackages.com/packages/fubhy-math-php)
```

###  Alternatives

[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k910.8M118](/packages/doctrine-lexer)[nxp/math-executor

Simple math expressions calculator

2281.7M7](/packages/nxp-math-executor)[madorin/matex

PHP Mathematical expression parser and evaluator

1161.2M1](/packages/madorin-matex)[cerbero/json-parser

Zero-dependencies pull parser to read large JSON from any source in a memory-efficient way.

803474.6k5](/packages/cerbero-json-parser)[creof/geo-parser

Parser for geography coordinate strings

624.4M15](/packages/creof-geo-parser)[creof/wkt-parser

Parser for well-known text (WKT) object strings

554.8M16](/packages/creof-wkt-parser)

PHPackages © 2026

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