PHPackages                             stefanpolzer/propel-real-enum-behavior - 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. stefanpolzer/propel-real-enum-behavior

ActivePropel-behavior[Database &amp; ORM](/categories/database)

stefanpolzer/propel-real-enum-behavior
======================================

Propel 2 behavior to manage the ENUM type more closely to what enums should be

2.0.1(2y ago)031MITPHPPHP &gt;=7.4

Since Mar 11Pushed 2y agoCompare

[ Source](https://github.com/stefanpolzer/propel-real-enum-behavior)[ Packagist](https://packagist.org/packages/stefanpolzer/propel-real-enum-behavior)[ RSS](/packages/stefanpolzer-propel-real-enum-behavior/feed)WikiDiscussions master Synced 1mo ago

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

Propel Real Enum Behavior
=========================

[](#propel-real-enum-behavior)

[![Latest Stable Version](https://camo.githubusercontent.com/dd0a5ef8e9150f3f598ca1c93b64bab2d51e12c13a3a4d507423aa80df6501c9/68747470733a2f2f706f7365722e707567782e6f72672f73746566616e706f6c7a65722f70726f70656c2d7265616c2d656e756d2d6265686176696f722f762f737461626c65)](https://packagist.org/packages/stefanpolzer/propel-real-enum-behavior)[![Total Downloads](https://camo.githubusercontent.com/8217b100d888c08c7e0d3e5ef545e9127286525951eee1566822d97a9168b55a/68747470733a2f2f706f7365722e707567782e6f72672f73746566616e706f6c7a65722f70726f70656c2d7265616c2d656e756d2d6265686176696f722f646f776e6c6f616473)](https://packagist.org/packages/stefanpolzer/propel-real-enum-behavior)[![License](https://camo.githubusercontent.com/49563c5c7a4d016ad6af194176f0a90e535aaa32575c49691eda8b8fa02a1041/68747470733a2f2f706f7365722e707567782e6f72672f73746566616e706f6c7a65722f70726f70656c2d7265616c2d656e756d2d6265686176696f722f6c6963656e7365)](https://packagist.org/packages/stefanpolzer/propel-real-enum-behavior)

Requirements
------------

[](#requirements)

This Behavior was developed for **Propel 2**.
It was also only tested for **MySQL** databases, if you wish to test it or adjust it for another database type, feel free to open an issue.

Installation
------------

[](#installation)

```
composer require stefanpolzer/propel-real-enum-behavior
```

#### schema.xml

[](#schemaxml)

Add the behavior either to the root of your database or on the target table.
Here is an example :

```

```

#### Usage

[](#usage)

This behavior does 2 things to make usage of `ENUMS` easier :

- You will now see the ENUM value from the `valueSet` in the database instead of a number.
- Model classes will now have constants to easily access the enum values. Using the example above we could get a value from the value set like this : `MyTable::MY_ENUM_SECOND`

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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

790d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd88cee017a92f45402610416a8686f56a7f208730be05b3dd1aebe59be859f8?d=identicon)[stefanpolzer](/maintainers/stefanpolzer)

---

Top Contributors

[![max-was-here](https://avatars.githubusercontent.com/u/7432034?v=4)](https://github.com/max-was-here "max-was-here (13 commits)")[![stefanpolzer](https://avatars.githubusercontent.com/u/8753847?v=4)](https://github.com/stefanpolzer "stefanpolzer (2 commits)")

### Embed Badge

![Health badge](/badges/stefanpolzer-propel-real-enum-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/stefanpolzer-propel-real-enum-behavior/health.svg)](https://phpackages.com/packages/stefanpolzer-propel-real-enum-behavior)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)

PHPackages © 2026

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