marekskopal / orm-decimal
Decimal type from ext-decimal PHP extension mapper for MarekSkopal ORM.
dev-main
2024-12-23 21:25 UTC
Requires
- php: >=8.4
- ext-decimal: *
- marekskopal/orm: dev-main
- php-decimal/php-decimal: ^1.1.0
Requires (Dev)
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^11.4
- slevomat/coding-standard: ^8.15
This package is auto-updated.
Last update: 2024-12-23 21:25:39 UTC
README
Decimal type from ext-decimal PHP extension mapper for MarekSkopal ORM.
Install
composer require marekskopal/orm-decimal
Usage
Add ColumnDecimal
attribute to your entity parameter.
use Decimal\Decimal; use MarekSkopal\ORM\Attribute\Entity; use MarekSkopal\ORM\Decimal\Attribute\ColumnDecimal; #[Entity] class MyEntity { #[ColumnDecimal(precision: 8, scale: 2)] public Decimal $value; }