marekskopal/orm-decimal

Decimal type from ext-decimal PHP extension mapper for MarekSkopal ORM.

Installs: 120

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/marekskopal/orm-decimal

v1.0.0 2024-12-31 11:09 UTC

This package is auto-updated.

Last update: 2025-09-29 03:13:25 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;
}