PHPackages                             embeer/math - 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. embeer/math

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

embeer/math
===========

tools for math exercising

v1.0.1(3y ago)011MITPHPPHP &gt;=7.2.0

Since Nov 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/embeer/math)[ Packagist](https://packagist.org/packages/embeer/math)[ Docs](http://github.com/embeer/math)[ RSS](/packages/embeer-math/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (3)Used By (0)

math
====

[](#math)

A few classes (for now actually only one) serving maths exercising.

### v. 1.0.0

[](#v-100)

released on 20th March 2020

### Usage

[](#usage)

#### Class `Expressions`

[](#class-expressions)

Execute the below code to obtain an array of expressions coded for HTML ready to display in browser.

```
$expressions = (new Expressions($parameters))->getExpressions();
```

Example result

```
14&frasl;6 + (4&frasl;8 + 2.1 + 6 + 5&frasl;10) * 3&frasl;4 =
5&frasl;10 * 5&frasl;5 * (21&frasl;3 + 1&frasl;6 - 10) - 10 =
5 - 6 * (4&frasl;8 - 6) + 4 =
6&frasl;4 - (6 : (-6&frasl;9) - 2) =
```

giving the following display

14⁄6 + (4⁄8 + 2.1 + 6 + 5⁄10) \* 3⁄4 =

5⁄10 \* 5⁄5 \* (21⁄3 + 1⁄6 - 10) - 10 =

5 - 6 \* (4⁄8 - 6) + 4 =

6⁄4 - (6 : (-6⁄9) - 2) =

Class internal variables are self documented. The defaults can be changed passing new values to the class constructor as an array of pairs `"variableName" => variableValue`.

Note: `:` (colon) stands for division operator symbol.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Every ~0 days

Total

2

Last Release

1320d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[franmomu/silex-pagerfanta-provider

Silex ServiceProvider for Pagerfanta Library

1412.1k](/packages/franmomu-silex-pagerfanta-provider)

PHPackages © 2026

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