Changelog
phil/money-bundleAll notable changes to phil/money-bundle will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
NEXT - YYYY-MM-DD
Added
- The
phil_moneyconfiguration —currencies,default_currency,doctrine_mapping— checked against the currency data, andAcceptedCurrencies. An opencurrencieslist offers, throughAcceptedCurrencies::all()andMoneyType, only the currencies in current use (legal tender in at least one country today), computed once, and accepts every known currency. - The
phil_currencyDoctrine column type and the mapping ofPhil\Money\Moneyas an ORM embeddable. MoneyType: an amount read and written in the request's locale without a float, and a currency choice when more than one is offered; aMoneyTypefixed to one currency saves the submitted amount in that currency, even when the form was filled from an amount in another one. Its model transformerMoneyTransformerandLocalizedDecimal, whoseparse()accepts grouping only in groups of the locale's sizes before the decimal point:12,50inen,12.50indeand1,2,3are refused.- The
AcceptedCurrencyandMoneyRangeconstraints, with English and French messages, and the French message of an unreadable amount.MoneyRangerefuses a bound that is not a decimal when it is built, and rounds a bound finer than the money's currency towards the inside of the range, so that no submitted amount makes it throw. - The
format_moneyTwig filter, which withLocalizedDecimalbuilds one ICU formatter per locale and keeps those of 64 locales at most, and the Twig functionsmoney_schemaandprice_schema: schema.orgMonetaryAmountandOfferprice for JSON-LD. - The documentation in
doc/, one file per topic, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.