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

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

php-decimal/php-decimal
=======================

Correctly-rounded arbitrary precision decimal floating point

v1.1.0(7y ago)781.0M—7.6%1[1 issues](https://github.com/php-decimal/php-decimal/issues)9MITPHP &gt;=7.0.0

Since Oct 28Pushed 7y ago5 watchersCompare

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

READMEChangelogDependencies (1)Versions (5)Used By (9)

PHP Decimal Extension
=====================

[](#php-decimal-extension)

[![Packagist](https://camo.githubusercontent.com/0072258d208b634db418761b86cadbc1c54e1de4a2885a9da7fd7f2c17483eee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068702d646563696d616c2f7068702d646563696d616c2e737667)](https://packagist.org/packages/php-decimal/php-decimal)

This is the reference package to use when adding the decimal extension as a dependency.

It provides:

- Semantic versioning.
- Implicit dependency on `ext-decimal`.
- Implicit stubs for IDE integration.

```
composer require php-decimal/php-decimal

```

Also see:

- [Documentation](https://github.com/php-decimal/php-decimal.github.io)
- [Extension](https://github.com/php-decimal/ext-decimal)
- [Stubs](https://github.com/php-decimal/stubs)
- [Laravel Integration](https://github.com/php-decimal/laravel)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity59

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

Total

4

Last Release

2736d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/761df764fa80c32031884a5dd2376cf7e70c0fa152eaa141fd68f12b4a761b9f?d=identicon)[rtheunissen](/maintainers/rtheunissen)

---

Top Contributors

[![rtheunissen](https://avatars.githubusercontent.com/u/809191?v=4)](https://github.com/rtheunissen "rtheunissen (15 commits)")

---

Tags

decimalmathnumberprecision

### Embed Badge

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

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

###  Alternatives

[brick/math

Arbitrary-precision arithmetic library

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

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

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

PHPackages © 2026

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