All notable changes to sebastianbergmann/money
will be documented in this file. Updates should follow the Keep a CHANGELOG principles.
1.6.2 - 2016-04-17
Final release after project was abandoned.
1.6.1 - 2015-06-24
- Fixed dependency information for PHP 7
- Excluded
/build
and/tests
directory from distribution
1.6.0 - 2015-04-02
- Added the
Money::getConvertedAmount()
method for converting aMoney
object's amount into its base units - Added the
Currency::getCurrencies()
method for retrieving the registered currencies
- Removed support for PHP < 5.4.0
1.5.1 - 2015-02-22
- Added the optional
$roundingMode
argument to theMoney::extractPercentage()
method - Added support for arbitrary currencies that are not part of ISO 4217 to the
Currency
class - Added support for lower-case currency strings
- The
Money
class now implements PHP's built-inJsonSerializable
interface
- Changed the sub-unit of Japanese Yen from
100
to1
1.5.0 - 2014-09-05
- Added the
Money::extractPercentage()
method for extracting a percentage and the corresponding subtotal
1.4.0 - 2014-09-03
- Added the
Money::createFromString()
named constructor to createMoney
objects from strings such as"12.34"
- Changed
Money::__construct()
to accept an ISO 4217 currency code as its second argument
1.3.1 - 2014-07-21
- Added support for late static binding to the
Money::newMoney()
method - Added checks to ensure that internal operations do not disguise imprecision
1.3.0 - 2013-11-13
- Added (automatically generated)
Currency
-specific subclasses ofMoney
1.2.0 - 2013-10-19
- Implemented rounding support for the
Money::multiply()
method
1.1.0 - 2013-10-16
- Added
Money::equals()
,Money::greaterThanOrEqual()
, andMoney::lessThanOrEqual()
methods
- Initial release