Skip to content

Releases: cknow/laravel-money

v7.0.1

31 Oct 19:10
13a87ac
Compare
Choose a tag to compare

Fixes

  • Fix divide and multiply by a float precision (#127)

v7.0.0

17 Jun 19:10
Compare
Choose a tag to compare

Features

  • Add getISOCurrencies (#118)
  • Add rules currency and money (#119)

Fixes

  • Fix divide and multiply (#117)
  • Fix PHPDoc typings (#121)

⚠ Breaking Changes

Floating values ​​have a new parser

v6.4.0

money(2.50 * 100) = $2.50
money(2.50 * 101) = $2.52

v7.0.0

money(2.50 * 100) = $250.00
money(2.50 * 101) = $252.50

Versions deleted

The versions below had break changes and were removed. See #123

  • v6.5.0
  • v6.5.1

v6.4.0

19 Apr 13:43
1674f38
Compare
Choose a tag to compare

Features

  • Add option to force decimals on MoneyCast (#114)

Fixes

  • Support nullable amount and currency
  • Fix parser when decimal part is .00 (#113)

v6.3.0

14 Feb 15:43
2c358a6
Compare
Choose a tag to compare

Features

  • Support Laravel 9 (#104)

Fixes

  • Fix amount nullable (#105)
  • [PHP 8.1] Avoid deprecation message for jsonSerialize() return type (#101)

v6.2.0

06 Jan 18:09
Compare
Choose a tag to compare

Features

  • Support PHP 8.1 (#99)
  • Support moneyphp/money v4 (#91)
  • Add cast MoneyIntegerCast (#90)
  • Add cast MoneyStringCast (#90)
  • Add cast MoneyDecimalCast (#90)
  • Add new option defaultFormatter (#93)
  • Add new formatter CurrencySymbolMoneyFormatter (#94)
  • Make optional $currency parameter in helper function currency (#98)
  • Add currency validation helper (#100)

Fixes

  • Fix currencies (#89)

Changed

  • Deprecated Cknow\Money\MoneyCast

v6.1.1

22 Sep 12:30
Compare
Choose a tag to compare

Fixes

  • Fix currency as string

v6.1.0

05 Nov 20:05
3431fe3
Compare
Choose a tag to compare

Features

  • Added support PHP ^8.0

Thanks

@rez1dent3

v6.0.0

09 Sep 13:46
Compare
Choose a tag to compare

Features

  • Added support for Laravel 8.0

Breaking Changes

  • Drop support for PHP 7.2

Thanks

@andreiio

v5.0.1

01 Jul 18:31
f589133
Compare
Choose a tag to compare

Fixes

  • Fix backward compatibility

v5.0.0

04 Jun 21:53
Compare
Choose a tag to compare

Fixes

  • Rename trait method getCurrency to getDefaultCurrency

Features

  • Attribute Casting with Cknow\Money\MoneyCast
  • Custom currencies

Breaking Changes

  • Drop support for Laravel 6
  • Use defaultCurrency instead of currency

Thanks