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

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

cline/math
==========

Arbitrary-precision arithmetic library

2.0.2(3mo ago)02.2k↑476.9%2MITPHPPHP ^8.5.0CI failing

Since Feb 27Pushed 3mo agoCompare

[ Source](https://github.com/faustbrian/math)[ Packagist](https://packagist.org/packages/cline/math)[ RSS](/packages/cline-math/feed)WikiDiscussions 2.x Synced 3w ago

READMEChangelog (2)Dependencies (7)Versions (7)Used By (2)

[![GitHub Workflow Status](https://github.com/faustbrian/math/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/math/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/36fe1935268a383ffed5fd525b8322d33215282d19ba5a26c5209a059c9a2e0c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f6d6174682e737667)](https://packagist.org/packages/cline/math)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/1967cbb5c23435b1d0240280c6f1ea60b6329aab49840643f2bcb9fad64bf28a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f6d6174682e737667)](https://packagist.org/packages/cline/math)

---

math
====

[](#math)

Arbitrary-precision arithmetic library derived from brick/math.

Requirements
------------

[](#requirements)

> **Requires [PHP 8.4+](https://php.net/releases/)**

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

[](#installation)

```
composer require cline/math
```

Usage
-----

[](#usage)

```
// Add usage examples here
```

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

[](#change-log)

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

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 use the [GitHub security reporting form](https://github.com/faustbrian/math/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance82

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

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 ~4 days

Total

6

Last Release

97d ago

Major Versions

1.x-dev → 2.0.02026-03-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

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

---

Tags

phpmathArbitrary-precisionbig number

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[brick/math

Arbitrary-precision arithmetic library

2.1k532.9M375](/packages/brick-math)[krowinski/bcmath-extended

Extends php BCMath lib for missing functions like floor, ceil, round, abs, min, max, rand for big numbers. Also wraps existing BCMath functions. (more http://php.net/manual/en/book.bc.php) Supports scientific notations

791.1M22](/packages/krowinski-bcmath-extended)[rubix/tensor

A library and extension that provides objects for scientific computing in PHP.

2791.5M5](/packages/rubix-tensor)[samsara/fermat

A library providing math and statistics operations for numbers of arbitrary size.

653.1k3](/packages/samsara-fermat)

PHPackages © 2026

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