Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Money Laravel Package

cknow/laravel-money

View on GitHub
Deep Wiki
Context7
v8.5.0

Features

  • Support PHP 8.5 (#180)
  • Support Laravel 13 (#181)
v8.4.0

Features

  • Support Laravel 12 (#175)
v8.3.1

Fixes

  • Fix iso currencies path (#174)
v8.3.0

Features

  • Add setCurrency (#170)

Fixes

  • Fix ISOCurrencies (#171)
v8.2.0

Features

  • Add support php 8.4 (#168)
v8.1.0

Features

  • Support static macros (#162)
v8.0.0

Features

  • Support Laravel 11 (#158)
  • Remove Renderable (#150)

⚠ Breaking Changes

  • Drop PHP 7.3, 7.4, 8.0
  • Drop Laravel 7, 8
v7.2.1

Fixes

  • Fix call undefined method (#160)
v7.2.0

Features

  • Serializer Config (#136)

Fixes

  • Fixes usage of ROUND_UP and ROUND_DOWN (#134)
  • Fix money parser (#153)
v6.4.1

Fixes

  • Fix PHPDoc typings
v7.1.0

Features

  • Laravel 10.x Compatibility (#141)

Fixes

  • Fix string interpolation deprecated in PHP8.2: use {$var} instead of ${var} (#132)

Docs

  • Fix cast example (#143)
v7.0.2

Fixes

v7.0.1

Fixes

v7.0.0

Features

Fixes

⚠ 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 https://github.com/cknow/laravel-money/issues/123

  • v6.5.0
  • v6.5.1
v6.4.0

Features

Fixes

v6.3.0

Features

  • Support Laravel 9 (#104)

Fixes

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

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

Fixes

  • Fix currency as string
v6.1.0

Features

  • Added support PHP ^8.0

Thanks

@rez1dent3

v6.0.0

Features

  • Added support for Laravel 8.0

Breaking Changes

  • Drop support for PHP 7.2

Thanks

@andreiio

v5.0.1

Fixes

  • Fix backward compatibility
v5.0.0

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

v4.0.0

Features

  • Added Laravel 7.0 support

Breaking Changes

  • Drop support for PHP 7.1
  • Drop support for Laravel 5
v3.8.1
  • Lumen Compatibility
v3.8.0

Features

  • Added Laravel 6.0 support
v3.7.0

Features

  • Make it easier for classes to extend
v3.6.0

Features

  • Add the ability to macro the Money class
v3.5.0

Features

  • Added Laravel 5.8 support
v3.4.0

Features

Money

  • Added aggregate static function Money::min
  • Added aggregate static function Money::max
  • Added aggregate static function Money::avg
  • Added aggregate static function Money::sum
  • Update add now accept variadic arguments
  • Update subtract now accept variadic arguments

Helpers

  • Added money_min
  • Added money_max
  • Added money_avg
  • Added money_sum

Directives

  • Added [@money_min](https://github.com/money_min)
  • Added [@money_max](https://github.com/money_max)
  • Added [@money_avg](https://github.com/money_avg)
  • Added [@money_sum](https://github.com/money_sum)
v3.3.0

Features

Parsers

  • Added parseByAggregate
  • Added parseByBitcoin
  • Added parseByIntl
  • Added parseByIntlLocalizedDecimal
  • Updated parse is alias to parseByIntl

Formatters

  • Added formatByAggregate
  • Added formatByBitcoin
  • Added formatByIntl
  • Added formatByIntlLocalizedDecimal
  • Updated format is alias to formatByIntl

Helpers

  • Added money_parse_by_bitcoin
  • Added money_parse_by_intl
  • Added money_parse_by_intl_localized_decimal

Directives

  • Added [@money_parse_by_bitcoin](https://github.com/money_parse_by_bitcoin)
  • Added [@money_parse_by_intl](https://github.com/money_parse_by_intl)
  • Added [@money_parse_by_intl_localized_decimal](https://github.com/money_parse_by_intl_localized_decimal)
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor