All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Add Symfony 6 support
- Drop support for PHP 5.6
- Mark
Money::setAmount()
as@internal
- Mark
Money::setCurrency()
as@internal
- Mark
Money::setAmountInCents()
as@internal
- Mark
Money::setAmountInMinorUnits()
as@internal
- Update PHPUnit version
- Migrate from Travis CI to GitHub Actions
- Deprecate
Money::setAmountInCents()
in favor ofMoney::setAmountInMinorUnits()
- Deprecate
Money::getAmountInCents()
in favor ofMoney::getAmountInMinorUnits()
- Add license (#21)
- Add missing soft dependencies (#22)
- Switch to PSR-4 autoloader (#23)
- Mauritanian Ouguiya currency iso number
- Mauritanian Ouguiya currency money fraction
- Added Money::createFromMinorUnits to return Money object from minor units
- Added MoneyNormalizer::mapFromMinorUnits to map a Money object from minor units
- Deprecated Money::createFromCents - more abstract Money::createFromMinorUnits is to be used instead
- Deprecated MoneyNormalizer::mapFromCents - MoneyNormalizer::mapFromMinorUnits is to be used instead
- Changed Money::clearAmountValue does not use float anymore for higher precision
- Changed Money::clearAmountValue clearing capabilities
- Changed Money::clearAmountValue return from float to string
- Updated
XAU
fractions
- Updated
maba/monetary
version
- Added
XAU
,XAG
,XPT
as currencies
\Evp\Component\Money\MoneyException
will extend\InvalidArgumentException
instead of\Exception
\Evp\Component\Money\MoneyException
will be thrown instead of\InvalidArgumentException
- Venezuelan bolivar currency money fraction
- Venezuelan bolivar currency iso number
- MoneyNormalizer will now format amount taking into consideration the currency's decimal places. If Money object was used with numbers beyond the currency's decimal places this will cause truncation. See an example below.
Old behavior:
{
"amount": "42.421234",
"currency": "EUR"
}
New behavior:
{
"amount": "42.42",
"currency": "EUR"
}
- Released to public