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

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

hellorse/doctrine-enum-bundle
=============================

Provides support of ENUM type for Doctrine2 in Symfony applications.

v9.0.4(3y ago)016MITPHPPHP &gt;=8.1

Since Nov 8Pushed 3y agoCompare

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

READMEChangelogDependencies (20)Versions (88)Used By (0)

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

[](#doctrineenumbundle)

📦 Provides support of **ENUM type** 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/98ca39045141ad7185cdbfda9b00306208b211fc6480ac98617c2b22ff8c1f4b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f66726535682f446f637472696e65456e756d42756e646c652f43492f6d61696e3f7374796c653d666c61742d737175617265)](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='~7.4'`

##### Choose the version you need

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

Bundle Version (X.Y.Z)PHPSymfonyDoctrine BundleComment`7.4.*``>= 7.4.0``5.4``>= 2.5`**Current version**`7.3.*``>= 7.3.0``5.0..5.3``>= 2.1`Previous version#### 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 when 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...
];
```

Using 🧑‍🎓
---------

[](#using-‍)

- [Example](./Resources/docs/example_of_using.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

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 91% 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 ~42 days

Total

87

Last Release

1250d ago

Major Versions

v6.6.4 → v7.1.22020-11-30

v7.4.0 → v8.0.02021-12-02

v7.5.0 → v8.1.02022-01-23

v7.5.1 → v8.1.12022-01-26

v8.1.2 → v9.0.02022-06-07

PHP version history (9 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

### Community

Maintainers

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

---

Top Contributors

[![fre5h](https://avatars.githubusercontent.com/u/815865?v=4)](https://github.com/fre5h "fre5h (395 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)")[![bendavies](https://avatars.githubusercontent.com/u/625392?v=4)](https://github.com/bendavies "bendavies (2 commits)")[![lexxpavlov](https://avatars.githubusercontent.com/u/1732647?v=4)](https://github.com/lexxpavlov "lexxpavlov (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)")[![IonBazan](https://avatars.githubusercontent.com/u/1985514?v=4)](https://github.com/IonBazan "IonBazan (2 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)")[![akucherenko](https://avatars.githubusercontent.com/u/1897949?v=4)](https://github.com/akucherenko "akucherenko (1 commits)")[![suxxes](https://avatars.githubusercontent.com/u/141334?v=4)](https://github.com/suxxes "suxxes (1 commits)")[![AlexandruGG](https://avatars.githubusercontent.com/u/34811569?v=4)](https://github.com/AlexandruGG "AlexandruGG (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (1 commits)")[![glaubinix](https://avatars.githubusercontent.com/u/442056?v=4)](https://github.com/glaubinix "glaubinix (1 commits)")[![jaikdean](https://avatars.githubusercontent.com/u/348408?v=4)](https://github.com/jaikdean "jaikdean (1 commits)")[![mbenoukaiss](https://avatars.githubusercontent.com/u/34457865?v=4)](https://github.com/mbenoukaiss "mbenoukaiss (1 commits)")

---

Tags

symfonybundletypeenummysqlsqlitedoctrinepostgresqldbalmssqlentity

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[sylius/sylius

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

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

Admin generator for Symfony applications

4.3k16.7M309](/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)

PHPackages © 2026

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