Skip to content

Reference

phil/money-bundle

Every type of the bundle, by layer.

Phil\MoneyBundle\Application

TypeKindRole
AcceptedCurrenciesfinal classThe accepted currencies, in order, and the default; for an open list, the currencies in current use; isKnown() for the configuration

Phil\MoneyBundle\Infrastructure

TypeKindRole
Form\MoneyTypeform typeAn amount field and, when several are offered, a currency choice
Form\MoneyTransformermodel transformerBetween a ?Money and the two fields' values
Form\LocalizedDecimalfinal classA decimal read and written in a locale, without a float
Validator\AcceptedCurrency, Validator\AcceptedCurrencyValidatorconstraint and validatorThe currency is accepted
Validator\MoneyRange, Validator\MoneyRangeValidatorconstraint and validatorThe amount lies between two bounds
Twig\MoneyExtensionTwig attribute extensionThe format_money filter; the money_schema and price_schema functions
Doctrine\CurrencyTypeDBAL typephil_currency

Files

FileRole
config/doctrine/Money.orm.xmlPhil\Money\Money as an embeddable
translations/validators.en.php, translations/validators.fr.phpThe constraints' messages and the form's

The bundle

Phil\MoneyBundle\PhilMoneyBundle, an AbstractBundle with the alias phil_money (configuration.md).