pandawan-technology / money-bundle
There is no license information available for the latest version (dev-main) of this package.
Integrates moneyphp/money into Symfony' applications
dev-main
2022-07-19 06:52 UTC
Requires
- pandawan-technology/money: dev-main
- symfony/config: ^4.4||^5.0||^6.0
- symfony/dependency-injection: ^4.4||^5.0||^6.0
- symfony/http-kernel: ^4.4||^5.0||^6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: dev-master
- phpunit/phpunit: 9.5.x-dev
This package is auto-updated.
Last update: 2024-10-23 16:00:27 UTC
README
- PHP 8.0 attributes' support
- automaticaly add Form type
- automaticaly add DB types for mapping (doctrine only):
amount
andcurrency
columns' mappings
Usage
doctrine's mapping:
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use PandawanTechnology\Money\Model\Money; #[ORM\Entity] class Product { #[ORM\Embedded(class: Money::class)] private $price; }