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.0+. See version map for details.
- Uses php-collective/decimal-object and as such requires bcmath extension.
Require the plugin through Composer:
composer require dereuromark/cakephp-decimal
See Documentation.
Live example see https://sandbox.dereuromark.de/sandbox/decimal-examples/forms