ang3 / money-bundle
Integration of brick/money for Symfony apps.
Installs: 65
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- brick/money: ^0.8.0
- symfony/config: ^5.4|^6.0
- symfony/dependency-injection: ^5.4|^6.0
- symfony/http-kernel: ^5.4|^6.0
- symfony/intl: ^5.4|^6.0
Requires (Dev)
- doctrine/doctrine-bundle: ^2.0
- doctrine/orm: ^2.10
- symfony/form: ^5.4|^6.0
- symfony/serializer: ^5.4|^6.0
- symfony/test-pack: ^1.0
- symfony/translation: ^5.4|^6.0
- symfony/twig-bundle: ^5.4|^6.0
- symfony/validator: ^5.4|^6.0
Suggests
- doctrine/doctrine-bundle: Add Money DBAL mapping type and/or use Price embeddable.
- symfony/form: Use money into your forms.
- symfony/serializer: Serialize/deserialize Price embeddable or Money objects using Symfony library.
- symfony/twig-bundle: Format and manipulate Money in Twig templates.
- symfony/validator: Use custom validation constraints on Money objects.
This package is auto-updated.
Last update: 2024-11-08 19:38:36 UTC
README
This bundle integrates the package brick/money into your Symfony apps. It provides Doctrine types, form types and others features to manage money and currency inside your project.
Installation
Step 1: Download the Bundle
Open a command console, enter your app directory and execute the following command to download the latest stable version of this bundle:
$ composer require ang3/money-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Configure the bundle
Create the file config/packages/ang3_money.yaml
, and add the contents below:
# config/packages/ang3_money.yaml ang3_money: ~
Usage
Money integration
Doctrine
Embedded entity
...
Forms
...
Validators
...
Normalizers
...
Twig
...
Services
Exchanger
...
That's it!