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.1

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 1mo 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

27

—

LowBetter than 49% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

569d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2eeb4a0e8bc7e2ce26f00193dac3973909911a18079b18956b03af66b901421a?d=identicon)[marekskopal](/maintainers/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

[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k241.3M3.3k](/packages/doctrine-doctrine-bundle)[doctrine/persistence

The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.

4.1k286.5M762](/packages/doctrine-persistence)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[beberlei/doctrineextensions

A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL, Oracle, PostgreSQL and SQLite.

2.1k75.1M146](/packages/beberlei-doctrineextensions)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58723.9M36](/packages/scienta-doctrine-json-functions)[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.

3516.7k3](/packages/wayofdev-laravel-cycle-orm-adapter)

PHPackages © 2026

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