All notable changes to this project will be documented in this file using the Keep a CHANGELOG principles. This project adheres to Semantic Versioning.
- Added
$withCurrencyCode
parameter toMoney::prettyPrint()
to render amount of money with currency code.
- Removed externally dependent
CurrencyPair::getRate()
. - PHP 7.3 is no longer supported.
- Fix construction of
Currency
.
- Annotate the immutability of
Money
. - Annotate the mutation-free behavior of all methods of
Currency
, exceptaddCurrency
.
- Fix
Money::fromString
phpdoc and improve type validation of arguments.
- Migrated CI from Travis CI to GitHub Actions.
- Upgraded minimum PHP version to v7.3.
- Added
Rate::withRatio
factory method to create modified value with specific ratio. - Added static analyzer into CI flow.
- Reverted removal of deprecated currencies. See #6 for details.
- Added a property to
Currency
showing that it is deprecated.
- Updated currencies list: remove deprecated, added new, rename code of others. See #5 for details.
- Fixed pretty-print formatting of negative amount of money
Initial Release