PHPackages                             shamil/php-bignumbers - 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. shamil/php-bignumbers

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

shamil/php-bignumbers
=====================

An opensource library to handle immutable big numbers inside PHP applications

0.7.3(10y ago)01MITPHPPHP &gt;=5.4.0

Since Dec 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/shamiln/php-bignumbers)[ Packagist](https://packagist.org/packages/shamil/php-bignumbers)[ RSS](/packages/shamil-php-bignumbers/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (14)Used By (0)

php-bignumbers [![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/Litipk/php-bignumbers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge) [![Donate](https://camo.githubusercontent.com/51cef02d032189b7134ddafba52e41fe4d3ecbc0da1ee0609def15a16b20b280/68747470733a2f2f696d672e736869656c64732e696f2f67726174697061792f6c697469706b2e737667 "Donate")](https://gratipay.com/litipk/) [![Flattr this git repo](https://camo.githubusercontent.com/7e3f46a36526479d701ef7f90a0f8c3ac2fbab3087446e2a9fceed75cd1ab802/687474703a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)](https://flattr.com/submit/auto?user_id=castarco&url=https://github.com/Litipk/php-bignumbers/&title=php-bignumbers&language=&tags=github&category=software)
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#php-bignumbers---)

A robust library to handle immutable big numbers inside PHP applications The current stable version is 0.7.3. Litipk\\BigNumbers supports PHP 5.4.x, 5.5.x, 5.6.x and 7.0.x but also Facebook's [HHVM](http://www.hhvm.com).

Status LabelStatus ValueBuild[![Build Status](https://camo.githubusercontent.com/ac850c2e503ed3e4a36f550cbd78d171ce0fc7bfba3fbe31ca3d8c513e1c8fb6/68747470733a2f2f6170692e7472617669732d63692e6f72672f4c697469706b2f7068702d6269676e756d626572732e706e673f7461673d302e372e30)](https://travis-ci.org/Litipk/php-bignumbers)HHVM support[![HHVM Status](https://camo.githubusercontent.com/13709c45deb2e609d912ec4fcbb62da76dc9cc6a1d220f201a7e9e9ce411ab1f/687474703a2f2f6868766d2e683463632e64652f62616467652f6c697469706b2f7068702d6269676e756d626572732e737667)](http://hhvm.h4cc.de/package/litipk/php-bignumbers)Coverage (from Coveralls):[![Coverage Status](https://camo.githubusercontent.com/275af1e1a502031a654da2600cc392b88f9af1d26c5192ecd2cb283043cb07b8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4c697469706b2f7068702d6269676e756d626572732f62616467652e706e673f7461673d302e372e30)](https://coveralls.io/r/Litipk/php-bignumbers?branch=master)Coverage (from Scrutinizer):[![Code Coverage](https://camo.githubusercontent.com/b6e295fb055a0d541eb0b3c2547303fdf8e1c723db3f7fc1189816ec2799073c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c697469706b2f7068702d6269676e756d626572732f6261646765732f636f7665726167652e706e673f733d35383933366439333334653766633234313361343361643663663163376331353737663166333963)](https://scrutinizer-ci.com/g/Litipk/php-bignumbers/)Code Quality (Scrutinizer):[![Scrutinizer Quality Score](https://camo.githubusercontent.com/85d77e3c93049410abc945802511a28a4a015e014c92db7bfea6ce971357c948/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c697469706b2f7068702d6269676e756d626572732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Litipk/php-bignumbers/)Code Quality (SensioLabs):[![SensioLabsInsight](https://camo.githubusercontent.com/3227189f573ee45f43b5acb672eb55b6ea137a5f84c409de159cddda49a7e690/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39613237396662652d326233372d343631322d616263302d3032376133616435643639632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/9a279fbe-2b37-4612-abc0-027a3ad5d69c)Dependencies:[![Dependency Status](https://camo.githubusercontent.com/3b036d80bcea4823d2f71c67d64108f50cfc96bb9d1b8181288cfc94cc1765ad/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3532636339316336656331333735343937303030303237352f62616467652e706e67)](https://www.versioneye.com/user/projects/52cc91c6ec13754970000275)Getting started
---------------

[](#getting-started)

You can install this library using [Composer](http://getcomposer.org/).

To install it via Composer, just write in the require block of your composer.json file the following text:

```
{
    "require": {
        "litipk/php-bignumbers": "0.7.3"
    }
}
```

Learn more
----------

[](#learn-more)

- [Project Documentation](https://github.com/Litipk/php-bignumbers/wiki) : Here you can find how to use Litipk\\BigNumbers in your applications.
- [Chat Room](https://gitter.im/Litipk/php-bignumbers) : If you want to have a real-time chat with other Litipk\\BigNumbers users or developers, you can do it here.
- [Group / Mail List](https://groups.io/org/groupsio/php-bignumbers) : If a chat room isn't enough to post your doubts or ideas, you can join to our mail list.

How to contribute
-----------------

[](#how-to-contribute)

- First of all, you can take a look on the [bugtracker](https://github.com/Litipk/php-bignumbers/issues) and decide if there is something that you want to do 😉 . If you think there are missing improvements in this file, then you are invited to modify the TODO list.
- You can also send us bug reports using the same bugtracker.
- If you are really interested on helping to improve Litipk\\BigNumbers, we recommend to read the [contributing guidelines](https://github.com/Litipk/php-bignumbers/blob/master/CONTRIBUTING.md).

License
-------

[](#license)

Litipk\\BigNumbers is licensed under the [MIT License](https://github.com/Litipk/php-bignumbers/blob/master/LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.1% 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 ~66 days

Total

12

Last Release

3804d ago

PHP version history (2 changes)0.2PHP &gt;=5.4.0

0.4.1PHP &gt;=5.3.0

### Community

Maintainers

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

---

Top Contributors

[![castarco](https://avatars.githubusercontent.com/u/251364?v=4)](https://github.com/castarco "castarco (166 commits)")[![codisart](https://avatars.githubusercontent.com/u/1767237?v=4)](https://github.com/codisart "codisart (17 commits)")[![shabbyrobe](https://avatars.githubusercontent.com/u/288426?v=4)](https://github.com/shabbyrobe "shabbyrobe (5 commits)")[![UbiquitousBear](https://avatars.githubusercontent.com/u/5007497?v=4)](https://github.com/UbiquitousBear "UbiquitousBear (2 commits)")[![silentvick](https://avatars.githubusercontent.com/u/3365893?v=4)](https://github.com/silentvick "silentvick (1 commits)")[![josecelano](https://avatars.githubusercontent.com/u/58816?v=4)](https://github.com/josecelano "josecelano (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![agungsantoso](https://avatars.githubusercontent.com/u/476757?v=4)](https://github.com/agungsantoso "agungsantoso (1 commits)")[![MichaelGooden](https://avatars.githubusercontent.com/u/1275012?v=4)](https://github.com/MichaelGooden "MichaelGooden (1 commits)")

---

Tags

decimalbignumnumberbcmathgmp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/shamil-php-bignumbers/health.svg)

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

###  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)[rtlopez/decimal

An object oriented immutable arbitrary-precision arithmetic library for PHP

27262.8k2](/packages/rtlopez-decimal)[php-decimal/php-decimal

Correctly-rounded arbitrary precision decimal floating point

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

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

178.2M5](/packages/prestashop-decimal)[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)

PHPackages © 2026

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