Releases: moneyphp/money
v4.0.4
Improved PHP 8.1 support.
v4.0.3
Fixed jsonSerialize
return type, resulting in no warnings for PHP 8.1.
v4.0.2
v4.0.1
Fixes missing int
as allowed parameter type for multiply
and divide
methods.
v4.0.0
This release provides compatibility with PHP8.0 and has some BC breaks. See the CHANGELOG for more information. A special thanks goes to @Ocramius for being the main contributor of this release. He upgraded the package, implemented types and many more improvements. Since this release we recommend to use this library with a type-checker like Psalm.
v4.0.0-beta1
This release provides compatibility with PHP8.0 and has some BC breaks. See the CHANGELOG for more information. A special thanks goes to @Ocramius for being the main contributor of this release. He upgraded the package, implemented types and many more improvements. Since this release we recommend to use this library with a type-checker like Psalm.
v3.3.1
Fixed
- GMP: division of negative values
- GMP: compare 0.x value
v3.3.0
v3.2.1
Bugfixes, more deprecations warning and some docs fixed. See CHANGELOG.md for details.
v3.2.0
Added
- Exchanger exchange
- Generated static factory to help IDEs understand code like
Money::EUR(500)
- Aggregation functions (min, max, avg, sum)
Changed
Money::add
andMoney::subtract
now accept variadic arguments
Fixed
- Division causing unnecessary fractional parts
- Numeric comparison for negative numbers
Several minor fixes and documentation changes.