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.1M↓40.1%2[2 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 3d 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

41

—

FairBetter than 87% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity51

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

2782d 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.2k548.2M430](/packages/brick-math)[prestashop/decimal

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

178.9M9](/packages/prestashop-decimal)[krowinski/bcmath-extended

Extends php BCMath lib for missing functions like floor, ceil, round, abs, min, max, rand for big numbers. Also wraps existing BCMath functions. (more http://php.net/manual/en/book.bc.php) Supports scientific notations

801.1M24](/packages/krowinski-bcmath-extended)[delight-im/base-convert

Conversion of arbitrarily large numbers between any two bases or alphabets

161.5k](/packages/delight-im-base-convert)

PHPackages © 2026

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