PHPackages                             pear/math\_biginteger - 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. pear/math\_biginteger

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

pear/math\_biginteger
=====================

Pure-PHP arbitrary precission integer arithmetic library. If GMP or BCMath are available they are used.

v1.0.3(10y ago)222.8M—1.9%1315MITPHPPHP &gt;=4.2.0

Since Jan 27Pushed 3mo ago13 watchersCompare

[ Source](https://github.com/pear/Math_BigInteger)[ Packagist](https://packagist.org/packages/pear/math_biginteger)[ Docs](https://github.com/pear/Math_BigInteger)[ RSS](/packages/pear-math-biginteger/feed)WikiDiscussions trunk Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (15)

Math\_BigInteger
================

[](#math_biginteger)

Pure-PHP arbitrary precision integer arithmetic library.

Supports base-2, base-10, base-16, and base-256 numbers. Uses the GMP or BCMath extensions, if available, and an internal implementation, otherwise.

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

[](#installation)

### PEAR

[](#pear)

```
$ pear install Math_BigInteger
```

### Composer

[](#composer)

```
$ composer require pear/math_biginteger
```

Usage
-----

[](#usage)

See the examples in the `demo/` directory.

Links
-----

[](#links)

Homepage[http://pear.php.net/package/Math\_BigInteger](http://pear.php.net/package/Math_BigInteger)Bug tracker[http://pear.php.net/bugs/search.php?cmd=display&amp;package\_name\[\]=Math\_BigInteger](http://pear.php.net/bugs/search.php?cmd=display&package_name[]=Math_BigInteger)Source code[https://github.com/pear/Math\_BigInteger](https://github.com/pear/Math_BigInteger)

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance54

Moderate activity, may be stable

Popularity53

Moderate usage in the ecosystem

Community35

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~623 days

Total

2

Last Release

3689d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1323714f58f9144af310e5e4217e61b96ad7c42bc5c93a1f2d97deca95f6f4f8?d=identicon)[ashnazg](/maintainers/ashnazg)

![](https://www.gravatar.com/avatar/1214cf33299ce51f30c9c199cf3b55e8630cc16d5df714c551407088937e9988?d=identicon)[terrafrost](/maintainers/terrafrost)

![](https://www.gravatar.com/avatar/a1a2e6fe03f91204de2117430a748a12db2957eb113d4a50fc86d68d3c851e11?d=identicon)[cweiske](/maintainers/cweiske)

![](https://avatars.githubusercontent.com/u/795177?v=4)[Jan Waś](/maintainers/nineinchnick)[@nineinchnick](https://github.com/nineinchnick)

---

Top Contributors

[![terrafrost](https://avatars.githubusercontent.com/u/214474?v=4)](https://github.com/terrafrost "terrafrost (35 commits)")[![cweiske](https://avatars.githubusercontent.com/u/59036?v=4)](https://github.com/cweiske "cweiske (3 commits)")[![glennpratt](https://avatars.githubusercontent.com/u/202230?v=4)](https://github.com/glennpratt "glennpratt (2 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (2 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (2 commits)")[![gauthierm](https://avatars.githubusercontent.com/u/120511?v=4)](https://github.com/gauthierm "gauthierm (2 commits)")[![SonarSoftware](https://avatars.githubusercontent.com/u/12124408?v=4)](https://github.com/SonarSoftware "SonarSoftware (1 commits)")[![CloCkWeRX](https://avatars.githubusercontent.com/u/365751?v=4)](https://github.com/CloCkWeRX "CloCkWeRX (1 commits)")[![ashnazg](https://avatars.githubusercontent.com/u/100170?v=4)](https://github.com/ashnazg "ashnazg (1 commits)")

---

Tags

integerprecisionbcmathgmparbitrary

### Embed Badge

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

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

###  Alternatives

[brick/math

Arbitrary-precision arithmetic library

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

AzaMath - Anizoptera CMF mathematic component. Arbitrary precision arithmetic (for huge integers; BCMath wrapper) and universal convertor between positional numeral systems (supported bases from 2 to 62 inclusive, and systems with custom alphabet; pure PHP realisation, can use GMP and core PHP functions for speed optimization).

1921.9k1](/packages/aza-math)[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5275.0k30](/packages/ionux-phactor)[phpseclib/bcmath_compat

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

16720.7M17](/packages/phpseclib-bcmath-compat)[prestashop/decimal

Object-oriented wrapper/shim for BC Math PHP extension. Allows for arbitrary-precision math operations.

178.2M5](/packages/prestashop-decimal)[ikr/money-math

gmp-based arbitrary precision operations on currency amounts "XXX.YY"; because floats are BAD for representing money

3115.0k1](/packages/ikr-money-math)

PHPackages © 2026

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