PHPackages                             phpmath/bignumber - 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. phpmath/bignumber

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

phpmath/bignumber
=================

A PHP library to work with big numbers.

1.2.0(9y ago)589.2k↓28.3%32MITPHPPHP &gt;=5.3.3

Since Apr 18Pushed 7y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (4)Used By (2)

bignumber
=========

[](#bignumber)

[![Latest Version on Packagist](https://camo.githubusercontent.com/673ed269604f5731cbd1c68ce43b8047044a1cca85382249cbd0921ea2c2bf47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068706d6174682f6269676e756d6265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpmath/bignumber)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e916516ec9b2d9b45e3f1149744e8ce170f3a200d512bdf81b2f305151ca5c47/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068706d6174682f6269676e756d6265722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/phpmath/bignumber)[![Coverage Status](https://camo.githubusercontent.com/3afefd9b97092b2c0745385fdcf63062dfd9604dc8e02b96603431ea9b3342b1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7068706d6174682f6269676e756d6265722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/phpmath/bignumber/code-structure)[![Quality Score](https://camo.githubusercontent.com/227ab441621ff3a8b6b7c53c0a844dc5553c075fb24c021a65f232210271ac3d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7068706d6174682f6269676e756d6265722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/phpmath/bignumber)[![Total Downloads](https://camo.githubusercontent.com/fe487c9b5dfdf4ff32a12b98e39c8eafd9c8a1fd311a2d75a1e440951a527b86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068706d6174682f6269676e756d6265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpmath/bignumber)[![SensioLabsInsight](https://camo.githubusercontent.com/d3376e0100ec17a215f4c401c9fd0b969708adbc19f9b1a33b308ef246b29a48/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f35616336633439392d373037382d343464332d396232352d3563376163646130383832612e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/5ac6c499-7078-44d3-9b25-5c7acda0882a)

A PHP library to work with big A PHP library to work with big numbers..

Getting started
---------------

[](#getting-started)

It's recommended to install this library via [Composer](https://getcomposer.org).

```
{
    "require": {
        "phpmath/bignumber": "^1.0"
    }
}
```

The current master branch is considered stable. The badges on top of this document should confirm this.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% 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 ~28 days

Total

3

Last Release

3625d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ee7f711ef4d45ada0ac92c7ab2f548055a7cfbe718da6c4bbb81b2f6693c528?d=identicon)[waltertamboer](/maintainers/waltertamboer)

---

Top Contributors

[![waltertamboer](https://avatars.githubusercontent.com/u/508054?v=4)](https://github.com/waltertamboer "waltertamboer (35 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

mathbignumber

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phpmath-bignumber/health.svg)

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

###  Alternatives

[brick/math

Arbitrary-precision arithmetic library

2.1k504.0M277](/packages/brick-math)[markrogoyski/math-php

Math Library for PHP. Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra

2.4k7.1M40](/packages/markrogoyski-math-php)[phpseclib/bcmath_compat

PHP 5.x-8.x polyfill for bcmath extension

16720.7M17](/packages/phpseclib-bcmath-compat)[rubix/tensor

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

2751.4M5](/packages/rubix-tensor)[jlawrence/eos

Parse and solve math equations without using 'eval()'.

1071.1M11](/packages/jlawrence-eos)[php-decimal/php-decimal

Correctly-rounded arbitrary precision decimal floating point

781.0M9](/packages/php-decimal-php-decimal)

PHPackages © 2026

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