PHPackages                             fresh/doctrine-enum-bundle - 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. fresh/doctrine-enum-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

fresh/doctrine-enum-bundle
==========================

Provides support of ENUM type for Doctrine2 in Symfony applications.

v12.0.1(4mo ago)4636.8M↓23.9%76[11 issues](https://github.com/fre5h/DoctrineEnumBundle/issues)12MITPHPPHP &gt;=8.4CI passing

Since Nov 8Pushed 1mo ago9 watchersCompare

[ Source](https://github.com/fre5h/DoctrineEnumBundle)[ Packagist](https://packagist.org/packages/fresh/doctrine-enum-bundle)[ Docs](https://github.com/fre5h/DoctrineEnumBundle)[ GitHub Sponsors](https://github.com/fre5h)[ RSS](/packages/fresh-doctrine-enum-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (21)Versions (104)Used By (12)

DoctrineEnumBundle
==================

[](#doctrineenumbundle)

📦 Provides **ENUM type** support for Doctrine in Symfony applications.

[![Scrutinizer Quality Score](https://camo.githubusercontent.com/e7cbc0f0713e4dbf5789a248cd2fe3c5eeecfd62d629b6052397160c33b28dbc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f66726535682f446f637472696e65456e756d42756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fre5h/DoctrineEnumBundle/)[![Build Status](https://camo.githubusercontent.com/3e46b9fdf16602c0a7aa38056c28bf610e1d1169f3354f37fb3d692d544bdf0f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f66726535682f446f637472696e65456e756d42756e646c652f63692e79616d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/fre5h/DoctrineEnumBundle/actions?query=workflow%3ACI+branch%3Amain+)[![CodeCov](https://camo.githubusercontent.com/31365f97533d114430a5a63a1269afd37cf064885748a18f7f494f5dadc253de/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f66726535682f446f637472696e65456e756d42756e646c652e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/fre5h/DoctrineEnumBundle)[![License](https://camo.githubusercontent.com/6272ee0cd7f3af092286dcef7058d562c80bae5755ad363d95e35bc8aca67a89/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66726573682f646f637472696e652d656e756d2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fresh/doctrine-enum-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/b6a9c384df34b38ea4b54ec0720802161aeb8df7a8313c3c7f0a05d8fcdb2879/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66726573682f646f637472696e652d656e756d2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fresh/doctrine-enum-bundle)[![Total Downloads](https://camo.githubusercontent.com/049cce962ccd61a4ddbf8420f12e4a5220a65ff3fef31be63276a5dbb182fe94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66726573682f646f637472696e652d656e756d2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fresh/doctrine-enum-bundle)[![StyleCI](https://camo.githubusercontent.com/d1e55852b8d470908395ef445b391414164d25d4917c41ac0b7e8fc1cd6d6d23/68747470733a2f2f7374796c6563692e696f2f7265706f732f363535333336382f736869656c643f7374796c653d666c61742d737175617265)](https://styleci.io/repos/6553368)[![Gitter](https://camo.githubusercontent.com/38615bd37fa667fefc3415d970da6c8f0de8796527cb97a89dfc59435f3189bd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6769747465722d6a6f696e253230636861742d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://gitter.im/fre5h/DoctrineEnumBundle)

Supported platforms 🧐
---------------------

[](#supported-platforms-)

PostgreSQLSQLiteMySQLMSSQLInstallation 🌱
--------------

[](#installation-)

`composer req fresh/doctrine-enum-bundle`

##### Choose the version you need

[](#choose-the-version-you-need)

Bundle Version (X.Y.Z)PHPSymfonyDoctrine BundleComment`12.0.*``>= 8.4``>= 7.4``>= 2.12, >= 3.0`**Current version**`11.2.*``>= 8.2``>= 6.4``>= 2.12, >= 3.0`Previous#### Check the `config/bundles.php` file

[](#check-the-configbundlesphp-file)

By default, Symfony Flex will add this bundle to the `config/bundles.php` file. But in case you ignored `contrib-recipe` during bundle installation it would not be added. In this case add the bundle manually:

```
# config/bundles.php

return [
    // Other bundles...
    Fresh\DoctrineEnumBundle\FreshDoctrineEnumBundle::class => ['all' => true],
    // Other bundles...
];
```

Usage 🧑‍🎓
---------

[](#usage-‍)

- [Example](./Resources/docs/usage_example.md "Example")

Features 🎁
----------

[](#features-)

- [NULL values](./Resources/docs/null_values.md "NULL values")
- [Default value](./Resources/docs/default_value.md "Default value")
- [Building the form](./Resources/docs/building_the_form.md "Building the form")
- [Additional methods](./Resources/docs/additional_methods.md "Additional methods")
- [Common types](./Resources/docs/common_types.md "Common types")
- [Readable ENUM values in templates](./Resources/docs/readable_enum_values_in_template.md "Readable ENUM values in templates")
- [ENUM constants in templates](./Resources/docs/enum_constants_in_templates.md "ENUM constants in templates")
- [ENUM values in templates](./Resources/docs/enum_values_in_templates.md "ENUM values in templates")
- [Hook for Doctrine migrations](./Resources/docs/hook_for_doctrine_migrations.md "Hook for Doctrine migrations")

Contributing 🤝
--------------

[](#contributing-)

Read the [CONTRIBUTING](https://github.com/fre5h/DoctrineEnumBundle/blob/master/.github/CONTRIBUTING.md) file.

###  Health Score

76

—

ExcellentBetter than 100% of packages

Maintenance83

Actively maintained with recent releases

Popularity66

Solid adoption and visibility

Community39

Small or concentrated contributor base

Maturity97

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 89.9% 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 ~47 days

Recently: every ~21 days

Total

103

Last Release

132d ago

Major Versions

v7.5.1 → v8.1.12022-01-26

8.x-dev → v9.0.02022-06-07

9.x-dev → v10.0.02023-12-01

v10.1.0 → v11.0.02024-05-31

v11.2.2 → v12.0.02025-11-28

PHP version history (10 changes)v1.0PHP &gt;=5.4.0

v2.6PHP &gt;=5.3.9

v5.0.0PHP &gt;=5.6.0

v6.0.0PHP &gt;=7.1.3

v7.0.0PHP &gt;=7.2.5

v7.2.0PHP &gt;=7.3.0

v7.4.0PHP &gt;=7.4.0

v8.0.0PHP &gt;=8.0.0

v8.1.0PHP &gt;=8.1

v12.0.0PHP &gt;=8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/815865?v=4)[Artem Henvald](/maintainers/fre5h)[@fre5h](https://github.com/fre5h)

---

Top Contributors

[![fre5h](https://avatars.githubusercontent.com/u/815865?v=4)](https://github.com/fre5h "fre5h (437 commits)")[![dkreuer](https://avatars.githubusercontent.com/u/461576?v=4)](https://github.com/dkreuer "dkreuer (8 commits)")[![aminin](https://avatars.githubusercontent.com/u/329494?v=4)](https://github.com/aminin "aminin (4 commits)")[![enumag](https://avatars.githubusercontent.com/u/539462?v=4)](https://github.com/enumag "enumag (4 commits)")[![deluxetom](https://avatars.githubusercontent.com/u/6439307?v=4)](https://github.com/deluxetom "deluxetom (3 commits)")[![lexxpavlov](https://avatars.githubusercontent.com/u/1732647?v=4)](https://github.com/lexxpavlov "lexxpavlov (2 commits)")[![maxhelias](https://avatars.githubusercontent.com/u/12966574?v=4)](https://github.com/maxhelias "maxhelias (2 commits)")[![monro93](https://avatars.githubusercontent.com/u/15449606?v=4)](https://github.com/monro93 "monro93 (2 commits)")[![nilov](https://avatars.githubusercontent.com/u/1862113?v=4)](https://github.com/nilov "nilov (2 commits)")[![bendavies](https://avatars.githubusercontent.com/u/625392?v=4)](https://github.com/bendavies "bendavies (2 commits)")[![IonBazan](https://avatars.githubusercontent.com/u/1985514?v=4)](https://github.com/IonBazan "IonBazan (2 commits)")[![morontt](https://avatars.githubusercontent.com/u/1615692?v=4)](https://github.com/morontt "morontt (1 commits)")[![rodrigoprimo](https://avatars.githubusercontent.com/u/77215?v=4)](https://github.com/rodrigoprimo "rodrigoprimo (1 commits)")[![stevepeak](https://avatars.githubusercontent.com/u/2041757?v=4)](https://github.com/stevepeak "stevepeak (1 commits)")[![stloyd](https://avatars.githubusercontent.com/u/67402?v=4)](https://github.com/stloyd "stloyd (1 commits)")[![sustmi](https://avatars.githubusercontent.com/u/885946?v=4)](https://github.com/sustmi "sustmi (1 commits)")[![suxxes](https://avatars.githubusercontent.com/u/141334?v=4)](https://github.com/suxxes "suxxes (1 commits)")[![akucherenko](https://avatars.githubusercontent.com/u/1897949?v=4)](https://github.com/akucherenko "akucherenko (1 commits)")[![zghosts](https://avatars.githubusercontent.com/u/4441963?v=4)](https://github.com/zghosts "zghosts (1 commits)")[![AlexandruGG](https://avatars.githubusercontent.com/u/34811569?v=4)](https://github.com/AlexandruGG "AlexandruGG (1 commits)")

---

Tags

bundledoctrinedoctrine-dbalenumphpsymfonysymfony-bundlesymfonybundletypeenummysqlsqlitedoctrinepostgresqldbalmssqlentity

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/fresh-doctrine-enum-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/fresh-doctrine-enum-bundle/health.svg)](https://phpackages.com/packages/fresh-doctrine-enum-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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