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

ActiveLibrary

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

Decimal class for PHP

v2.0.0(3mo ago)162.3k↓100%[1 PRs](https://github.com/fruitcake/php-decimal/pulls)MITPHP ^8.2

Since Oct 23Compare

[ Source](https://github.com/fruitcake/php-decimal)[ Packagist](https://packagist.org/packages/fruitcake/php-decimal)[ Docs](https://github.com/fruitcake/php-decimal)[ Fund](https://fruitcake.nl)[ GitHub Sponsors](https://github.com/barryvdh)[ RSS](/packages/fruitcake-php-decimal/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (6)Versions (12)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/fruitcake/php-decimal).

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance87

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

5

Last Release

96d ago

Major Versions

v1.0.3 → v2.0.02026-02-02

PHP version history (2 changes)v1.0.0PHP ^8.1

v2.0.0PHP ^8.2

### Community

Maintainers

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

---

Tags

moneydecimalmath

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[brick/math

Arbitrary-precision arithmetic library

2.1k504.0M276](/packages/brick-math)[brick/money

Money and currency library

1.9k37.9M102](/packages/brick-money)[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)[rtlopez/decimal

An object oriented immutable arbitrary-precision arithmetic library for PHP

27262.8k2](/packages/rtlopez-decimal)[adsmurai/currency

A small library to handle currencies and money values

4542.1k](/packages/adsmurai-currency)

PHPackages © 2026

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