PHPackages                             mediagone/types-enums-doctrine - 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. mediagone/types-enums-doctrine

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

mediagone/types-enums-doctrine
==============================

Provides Doctrine types for mediagone/types-enums package.

0.1.4(4y ago)09811MITPHPPHP ^7.4|^8.0

Since Apr 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Mediagone/types-enums-doctrine)[ Packagist](https://packagist.org/packages/mediagone/types-enums-doctrine)[ RSS](/packages/mediagone-types-enums-doctrine/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (3)Versions (6)Used By (0)

Types Enums for Doctrine
========================

[](#types-enums-for-doctrine)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3bace19846be90b740aaa03dce8b400e5ed43ad0e8c17a2854f422bae4be291f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65646961676f6e652f74797065732d656e756d732d646f637472696e652e737667)](https://packagist.org/packages/mediagone/types-enums-doctrine)[![Total Downloads](https://camo.githubusercontent.com/a9249059645767f15d77edcc32f3652a498cd3e4bc05aea71c2f89272f8e3e23/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65646961676f6e652f74797065732d656e756d732d646f637472696e652e737667)](https://packagist.org/packages/mediagone/types-enums-doctrine)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)

Provides Doctrine types for "mediagone/types-enums" package.

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

[](#installation)

This package requires **PHP 7.4+** and Doctrine **DBAL 2.7+**

Add it as Composer dependency:

```
$ composer require mediagone/types-enums-doctrine
```

Configuration
-------------

[](#configuration)

This package provides a generic Doctrine type to remove the need to create a custom types for each enum class manually. Then, you only need to register your enums in the `DoctrineEnumTypesLoader` class, and custom types will be automatically created and registered for you.

### With Symfony

[](#with-symfony)

If you're using this package in a Symfony project, register your enum classes in your app's kernel class:

```
use App\MyCustomEnum;
use App\MyOtherEnum;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;

class Kernel extends BaseKernel
{
    use MicroKernelTrait;

    public function boot(): void
    {
        parent::boot();

        (new DoctrineEnumTypesLoader())->registerEnumTypes([
            MyCustomEnum::class,
            MyOtherEnum::class,
            // any other enum classes here
        ]);
    }

    ...
}
```

License
-------

[](#license)

*Types Enums for Doctrine* is licensed under MIT license. See LICENSE file.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Every ~73 days

Total

5

Last Release

1548d ago

### Community

Maintainers

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

---

Top Contributors

[![Mediagone](https://avatars.githubusercontent.com/u/32240357?v=4)](https://github.com/Mediagone "Mediagone (7 commits)")

---

Tags

doctrineenumphpenumdoctrineenums

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mediagone-types-enums-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/mediagone-types-enums-doctrine/health.svg)](https://phpackages.com/packages/mediagone-types-enums-doctrine)
```

###  Alternatives

[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[scienta/doctrine-json-functions

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

58523.9M36](/packages/scienta-doctrine-json-functions)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[api-platform/schema-generator

Various tools to generate a data model based on Schema.org vocables

4714.2M7](/packages/api-platform-schema-generator)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)

PHPackages © 2026

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