Skip to content

Releases: moneyphp/money

v4.0.4

18 May 19:34
efe904a
Compare
Choose a tag to compare

Improved PHP 8.1 support.

v4.0.3

01 Dec 10:40
Compare
Choose a tag to compare

Fixed jsonSerialize return type, resulting in no warnings for PHP 8.1.

v4.0.2

30 Jun 10:47
Compare
Choose a tag to compare
  • Added all extensions to composer.json, including those bundled with PHP.
  • Remove all empty uses. Money values of '0' gave an assertion error in decimal formats (#655).

v4.0.1

25 May 13:58
Compare
Choose a tag to compare

Fixes missing int as allowed parameter type for multiply and divide methods.

v4.0.0

17 May 08:28
a53900c
Compare
Choose a tag to compare

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

05 May 11:29
59837e3
Compare
Choose a tag to compare
v4.0.0-beta1 Pre-release
Pre-release

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

18 Mar 17:53
122664c
Compare
Choose a tag to compare

Fixed

  • GMP: division of negative values
  • GMP: compare 0.x value

v3.3.0

27 Dec 22:02
v3.3.0
2a9b09b
Compare
Choose a tag to compare

Changed

  • Added types for Money to be understood as pure/immutable downstream (#576)

Fixed

  • JSON serialization (#551)
  • Several documentation fixes
  • Minor fixes

v3.2.1

07 Feb 18:03
f6085de
Compare
Choose a tag to compare

Bugfixes, more deprecations warning and some docs fixed. See CHANGELOG.md for details.

v3.2.0

05 Dec 12:18
v3.2.0
53ce6e4
Compare
Choose a tag to compare

Added

  • Exchanger exchange
  • Generated static factory to help IDEs understand code like Money::EUR(500)
  • Aggregation functions (min, max, avg, sum)

Changed

  • Money::add and Money::subtract now accept variadic arguments

Fixed

  • Division causing unnecessary fractional parts
  • Numeric comparison for negative numbers

Several minor fixes and documentation changes.