Skip to content

Releases: brick/money

0.3.1

04 Aug 17:36
Compare
Choose a tag to compare

ISO currency list update.

0.3.0

26 Jul 15:39
Compare
Choose a tag to compare

New methods:

  • CurrencyConversionException::getSourceCurrencyCode()
  • CurrencyConversionException::getTargetCurrencyCode()

This allows to programmatically get the failing currency pair when an exchange rate is not available.

Breaking change:

  • CurrencyConversionException constructor signature changed

Although this is technically a breaking change and requires a version bump, your code is unlikely to be affected, unless you're creating CurrencyConversionException instances manually (you shouldn't).

0.2.4

10 Jan 22:18
Compare
Choose a tag to compare

ISO currency list update.

0.1.1

08 Dec 22:45
Compare
Choose a tag to compare

Backports from 0.2.x:

  • New method: CustomContext::getScale()
  • Money::formatTo() now always respects the scale of the Money
  • Bug fix: Money::allocate() incorrectly allocated negative monies

0.2.3

01 Dec 21:03
178f4ba
Compare
Choose a tag to compare

Bug fix: Money::allocate() incorrectly allocated negative monies.

0.2.2

20 Nov 16:40
Compare
Choose a tag to compare

Money::formatTo() now always respects the scale of the Money.

0.2.1

05 Nov 20:55
Compare
Choose a tag to compare

New method: CustomContext::getScale()

0.2.0

02 Oct 19:50
Compare
Choose a tag to compare
  • Minimum requirement is now PHP 7.1
  • BigRational::toMoney() has been deprecated; use to() instead. This is the result of a factorization of a common feature in Money and RationalMoney.

0.1.0

02 Oct 15:57
Compare
Choose a tag to compare

First beta release!