PHPackages                             marekskopal/cycle-enum - 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-enum

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

marekskopal/cycle-enum
======================

Syntax sugar for using Enum column type in Cycle ORM.

v1.0.0(1y ago)040MITPHPPHP &gt;=8.1CI failing

Since Oct 26Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (12)Versions (2)Used By (0)

Cycle ORM - Enum Attribute
==========================

[](#cycle-orm---enum-attribute)

Syntax sugar for using Enum column type in Cycle ORM.

Declaration of enum column type in Cycle ORM is not very user friendly, because you must declare all enum values in column type.

This package provides attribute for declaring enum column type in Cycle ORM, which needs only enum class.

Install
-------

[](#install)

```
composer require marekskopal/cycle-enum
```

Usage
-----

[](#usage)

```
use Cycle\Annotated\Annotation\Entity;
use MarekSkopal\Cycle\Enum\ColumnEnum;

#[Entity]
class MyEntity
{
    #[ColumnEnum(enum: MyEnum::class)]
    public MyEnum $myColumn;
}
```

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

659d 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 (2 commits)")

---

Tags

enumormcyclecycle-ormext-decimal

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  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)
