PHPackages                             marekskopal/cycle-decimal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. marekskopal/cycle-decimal

ActiveLibrary[Database &amp; ORM](/categories/database)

marekskopal/cycle-decimal
=========================

Decimal type from ext-decimal PHP extension support for Cycle ORM

v0.3.0(2y ago)0508MITPHPPHP &gt;=8.1CI failing

Since Mar 9Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/marekskopal/cycle-decimal)[ Packagist](https://packagist.org/packages/marekskopal/cycle-decimal)[ RSS](/packages/marekskopal-cycle-decimal/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (3)Dependencies (8)Versions (4)Used By (0)

Cycle ORM - Decimal support
===========================

[](#cycle-orm---decimal-support)

Decimal type from ext-decimal PHP extension support for Cycle ORM.

Install
-------

[](#install)

```
composer require marekskopal/cycle-decimal
```

Usage
-----

[](#usage)

Add `DecimalTypecast` to your entity typecast list and use Decimal type in your entity.

```
use Cycle\Annotated\Annotation\Column;
use Cycle\Annotated\Annotation\Entity;
use Cycle\ORM\Parser\Typecast;
use Decimal\Decimal;
use MarekSkopal\Cycle\Decimal\ColumnDecimal;
use MarekSkopal\Cycle\Decimal\DecimalTypecast;

#[Entity(
    typecast: [
        Typecast::class,
        DecimalTypecast::class,
    ]
)]
class MyEntity
{
    #[Column(type: 'decimal(8,2)', typecast: DecimalTypecast::Type)]
    public Decimal $value;

    #[Column(type: 'decimal(8,2)', typecast: 'decimal(8,2)')]
    public Decimal $valueWithPrecision;

    #[ColumnDecimal(precision: 8, scale: 2)]
    public Decimal $valueWithAttribute;
}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance46

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

3

Last Release

881d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33967656?v=4)[Marek Skopal](/maintainers/marekskopal)[@marekskopal](https://github.com/marekskopal)

---

Top Contributors

[![marekskopal](https://avatars.githubusercontent.com/u/33967656?v=4)](https://github.com/marekskopal "marekskopal (13 commits)")

---

Tags

ormdecimalcyclecycle-ormext-decimal

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/marekskopal-cycle-decimal/health.svg)

```
[![Health](https://phpackages.com/badges/marekskopal-cycle-decimal/health.svg)](https://phpackages.com/packages/marekskopal-cycle-decimal)
```

###  Alternatives

[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3542.5k3](/packages/wayofdev-laravel-cycle-orm-adapter)[cycle/active-record

Provides a simple way to work with your database using Active Record pattern and Cycle ORM

672.0k5](/packages/cycle-active-record)[cycle/annotated

Cycle ORM Annotated Entities generator

29817.4k61](/packages/cycle-annotated)[yiisoft/yii-cycle

Cycle ORM v2 support

48119.5k](/packages/yiisoft-yii-cycle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
