PHPackages                             apapsch/litipk-php-bignumbers-adapter - 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. apapsch/litipk-php-bignumbers-adapter

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

apapsch/litipk-php-bignumbers-adapter
=====================================

Adapts litipk/php-bignumers to php-decimal.io interface

0.9.1(6y ago)01.5kMITPHPPHP &gt;=7.3

Since Dec 14Pushed 6y agoCompare

[ Source](https://github.com/apapsch/php-bignumbers)[ Packagist](https://packagist.org/packages/apapsch/litipk-php-bignumbers-adapter)[ RSS](/packages/apapsch-litipk-php-bignumbers-adapter/feed)WikiDiscussions v0.9 Synced 4w ago

READMEChangelogDependencies (4)Versions (25)Used By (0)

php-bignumbers
==============

[](#php-bignumbers)

This is a fork of the original [php-bignumbers](https://github.com/Litipk/php-bignumbers), which does not seem to be maintained anymore. It can be used as drop-in replacement. Motivations of the fork are:

- Create proper numbers from float regardless of the locale. Some locales use comma as decimal point and php-bignumbers relies on PHP string conversion of floats.
- Round correctly. There are slight rounding inaccuracies in the original package.
- Adapt the interface of [php-decimal](https://php-decimal.io/). This also solves the rounding issue. This is still experimental in the `devel` branch.

The supported PHP version is 7.x. Once the adapter is merged, the supported version will be &gt;=7.3.

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": {
        "apapsch/litipk-php-bignumbers-adapter": "~0.9"
    }
}
```

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

[](#learn-more)

See [upstream wiki](https://github.com/Litipk/php-bignumbers/wiki) for useful information.

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

[](#how-to-contribute)

Please send [issues](https://github.com/apapsch/php-bignumbers/issues) or [pull requests](https://github.com/apapsch/php-bignumbers/pulls) via Github. I don't have much plans for this package beyond the original motivations. Since the interface of `Litipk\BigNumbers\Decimal` is already quite big, you should not add any new methods there. Instead, create new classes or, if it's a bigger thing, create a new Composer package.

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.3% 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 ~106 days

Recently: every ~236 days

Total

22

Last Release

2285d ago

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

0.4.1PHP &gt;=5.3.0

0.8PHP &gt;=7.0

0.9.0PHP &gt;=7.3

### Community

Maintainers

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

---

Top Contributors

[![castarco](https://avatars.githubusercontent.com/u/251364?v=4)](https://github.com/castarco "castarco (168 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)")[![MichaelGooden](https://avatars.githubusercontent.com/u/1275012?v=4)](https://github.com/MichaelGooden "MichaelGooden (1 commits)")[![petrkotek](https://avatars.githubusercontent.com/u/5679032?v=4)](https://github.com/petrkotek "petrkotek (1 commits)")[![silentvick](https://avatars.githubusercontent.com/u/3365893?v=4)](https://github.com/silentvick "silentvick (1 commits)")[![agungsantoso](https://avatars.githubusercontent.com/u/476757?v=4)](https://github.com/agungsantoso "agungsantoso (1 commits)")[![tzhuan](https://avatars.githubusercontent.com/u/556870?v=4)](https://github.com/tzhuan "tzhuan (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![josecelano](https://avatars.githubusercontent.com/u/58816?v=4)](https://github.com/josecelano "josecelano (1 commits)")

---

Tags

decimalbignumnumberbcmathgmp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/apapsch-litipk-php-bignumbers-adapter/health.svg)

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

###  Alternatives

[brick/math

Arbitrary-precision arithmetic library

2.1k504.0M276](/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)
