All Versions
21
Latest Version
Avg Release Cycle
73 days
Latest Release
451 days ago

Changelog History
Page 1

  • v0.5.2 Changes

    April 03, 2021

    ๐Ÿ†• โœจ New methods

    • Money::allocateWithRemainder()
    • Money::splitWithRemainder()

    These methods perform like their allocate() and split() counterparts, but append the remainder at the end of the returned array instead of spreading it over the first monies.

    Thanks @NCatalani!

  • v0.5.1 Changes

    February 10, 2021

    ๐Ÿ‘Œ ๐Ÿ‘Œ Improvement

    BaseCurrencyProvider now always returns a BigNumber for convenience (#37). This is useful if you're using BaseCurrencyProvider on its own, not just in CurrencyConverter.

    Thanks @rdarcy1!

  • v0.5.0 Changes

    August 19, 2020

    ๐Ÿฑ ๐Ÿ‘Œ Improvements

    • compatibility with brick/math version 0.9

    โš ๏ธ Caution

    ๐Ÿ‘ป When using brick/math version 0.9, the Money factory methods such as of() and ofMinor() now accept decimal numbers in the form .123 and 123., and do not throw an exception anymore in this case.

  • v0.4.5 Changes

    May 31, 2020

    ๐Ÿ› ๐Ÿ› Bug fix

    ๐Ÿ‘ป MoneyBag::getAmount(), add() and subtract() would throw an exception when using a custom currency.

  • v0.4.4 Changes

    January 23, 2020

    ๐Ÿ†• โœจ New method

    AbstractMoney::isAmountAndCurrencyEqualTo() compares a money to another. (#17)

    This method is different from isEqualTo() in 2 aspects:

    • it only accepts another money, not a raw number;
    • it returns false if the money is in another currency , instead of throwing an exception.
  • v0.4.3 Changes

    January 09, 2020

    ๐Ÿ›  Improvements

    • MoneyBag::getAmount() now accepts an ISO numeric currency code as well

    ๐Ÿ†• โœจ New methods

    • CurrencyConverter::convertToRational() converts to a RationalMoney (#22)
  • v0.4.2 Changes

    July 04, 2019

    ๐ŸŽ Performance improvement when calling Money::formatTo() many times for the same locale.

  • v0.4.1 Changes

    October 17, 2018

    โž• Added support for brick/math version 0.8.

  • v0.4.0 Changes

    October 09, 2018

    ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿšš Deprecated method BigRational::toMoney() has been removed, use BigRational::to() instead;
    • BigRational::__toString() now always outputs the amount in non-simplified rational form.

    ๐Ÿ†• New methods

    • BigRational::simplified() returns a copy of the money with the amount simplified.
  • v0.3.4 Changes

    September 12, 2018

    โšก๏ธ ISO currency list update.