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

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

dereuromark/cakephp-decimal
===========================

CakePHP plugin for decimal handling via value object. Provides DecimalType class.

2.3.0(1y ago)813.4k↓36.4%11MITPHPPHP &gt;=8.1CI passing

Since Nov 25Pushed 2mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (13)Used By (1)

CakePHP Decimal Plugin
======================

[](#cakephp-decimal-plugin)

[![CI](https://github.com/dereuromark/cakephp-decimal/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/dereuromark/cakephp-decimal/actions/workflows/ci.yml?query=branch%3Amaster)[![codecov](https://camo.githubusercontent.com/d443cec2e3c233c9934e51804ba2456c29cfadec6d85bdcb4c54401171a7e92d/68747470733a2f2f636f6465636f762e696f2f67682f6465726575726f6d61726b2f63616b657068702d646563696d616c2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/dereuromark/cakephp-decimal)[![PHPStan](https://camo.githubusercontent.com/f60d96f7c2579690ab6dfa8918f777fe93a02a92301c661eb38a85861a92b780/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/)[![Latest Stable Version](https://camo.githubusercontent.com/a28cfea1bd1f8874f7ecbd83f1aae8e267a205fef5844e5932ed7a52ae232f2d/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d646563696d616c2f762f737461626c652e737667)](https://packagist.org/packages/dereuromark/cakephp-decimal)[![Minimum PHP Version](https://camo.githubusercontent.com/ec21f169d70b69344c67d6f18fa1a24d20476d2f0cd680e8c4a1534c22f34e5f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e322d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/8c2f39d4073c24b1f80af2084b60f8403331ff650a36ab799fda555ba8b79f80/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d646563696d616c2f6c6963656e73652e737667)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/37f627cb61e831a36a92b755d4c6b9be5cc83dc2e132781e7c6930e3bfdaf60f/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d646563696d616c2f642f746f74616c2e737667)](https://packagist.org/packages/dereuromark/cakephp-decimal)

This is an alternative to

- the core Decimal type (using plain strings)

As value object you have a few advantages, especially on handling the values inside your business logic.

This branch is for use with **CakePHP 5.1+**. See [version map](https://github.com/dereuromark/cakephp-decimal/wiki#cakephp-version-map) for details.

Requirements
------------

[](#requirements)

- Uses [php-collective/decimal-object](https://github.com/php-collective/decimal-object) and as such requires bcmath extension.

Installation
------------

[](#installation)

Require the plugin through Composer:

```
composer require dereuromark/cakephp-decimal

```

Setup and Usage
---------------

[](#setup-and-usage)

See [Documentation](docs/).

Demo
----

[](#demo)

Live example see

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance70

Regular maintenance activity

Popularity32

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 99.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 ~219 days

Recently: every ~139 days

Total

10

Last Release

396d ago

Major Versions

0.1.0 → 1.0.0-beta2019-12-30

1.1.0 → 2.0.02023-10-10

1.2.0 → 2.2.02024-10-24

PHP version history (4 changes)0.1.0PHP &gt;=7.1

1.0.0-betaPHP &gt;=7.2

1.1.0PHP &gt;=7.4

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39854?v=4)[Mark Scherer](/maintainers/dereuromark)[@dereuromark](https://github.com/dereuromark)

---

Top Contributors

[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (149 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (1 commits)")

---

Tags

cakephpdecimalphpprecision

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[markstory/asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

3761.0M11](/packages/markstory-asset-compress)[dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

401.0M11](/packages/dereuromark-cakephp-shim)[cakedc/cakephp-phpstan

CakePHP plugin extension for PHPStan.

40676.6k31](/packages/cakedc-cakephp-phpstan)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

2988.9k3](/packages/dereuromark-cakephp-dto)[dereuromark/cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

51174.9k4](/packages/dereuromark-cakephp-geo)

PHPackages © 2026

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