PHPackages                             ekapusta/doctrine-custom-types-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. ekapusta/doctrine-custom-types-bundle

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

ekapusta/doctrine-custom-types-bundle
=====================================

Add custom types like MySQL's enum

1.4.5(3mo ago)072.9k↓31%1MITPHPPHP ^5.5 || ^7.0 || ^8.0CI passing

Since Aug 19Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/ekapusta/doctrine-custom-types-bundle)[ Packagist](https://packagist.org/packages/ekapusta/doctrine-custom-types-bundle)[ RSS](/packages/ekapusta-doctrine-custom-types-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (6)Versions (17)Used By (0)

Doctrine custom types bundle
============================

[](#doctrine-custom-types-bundle)

[![Test](https://github.com/ekapusta/doctrine-custom-types-bundle/actions/workflows/test.yaml/badge.svg)](https://github.com/ekapusta/doctrine-custom-types-bundle/actions/workflows/test.yaml)

Add custom types like MySQL's enum.

To add new type
---------------

[](#to-add-new-type)

1. Add it to `Ekapusta\DoctrineCustomTypesBundle\DBAL\Types`
2. Register it at `Ekapusta\DoctrineCustomTypesBundle\DBAL\TypeRegistry`

MySQL ENUM type
---------------

[](#mysql-enum-type)

To use it in annotations, pass `values` through `options`:

```
/**
 * @var string
 *
 * @ORM\Column(name="sex", type="enum", options={
 *     "values": {"yes", "no", "maybe"},
 *     "default": "yes"
 * })
 */
private $sex;

```

PostgreSQL CUBE type
--------------------

[](#postgresql-cube-type)

Supports both points and point's sets. Also all cube's functions added. See

```
/**
 * @var Value\Point
 *
 * @ORM\Column(name="n_space_point", type="cube", options={
 *     "default": "(1, 2, 3)"
 * })
 */
private $nSpacePoint;

/**
 * @var Value\PointSet
 *
 * @ORM\Column(name="n_space_cube", type="cube", options={
 *     "default": "(1, 2), (3, 4)"
 * })
 */
private $nSpaceCube;

```

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance81

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 98.2% 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 ~288 days

Recently: every ~378 days

Total

13

Last Release

102d ago

PHP version history (2 changes)1.0PHP ^5.5 || ^7.0

1.4.5PHP ^5.5 || ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f986f04f2e4314d3b96ed62117f4298f07d8952d3b5ec6e00cf127d63f4046f?d=identicon)[garex](/maintainers/garex)

---

Top Contributors

[![garex](https://avatars.githubusercontent.com/u/77981?v=4)](https://github.com/garex "garex (55 commits)")[![dmishinrif](https://avatars.githubusercontent.com/u/161714119?v=4)](https://github.com/dmishinrif "dmishinrif (1 commits)")

### Embed Badge

![Health badge](/badges/ekapusta-doctrine-custom-types-bundle/health.svg)

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

###  Alternatives

[hautelook/alice-bundle

Symfony bundle to manage fixtures with Alice and Faker.

19519.4M34](/packages/hautelook-alice-bundle)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

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

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[pixelfederation/doctrine-resettable-em-bundle

Symfony bundle for decorating default entity managers using a resettable decorator.

20113.5k](/packages/pixelfederation-doctrine-resettable-em-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1022.4k](/packages/rcsofttech-audit-trail-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

813.1k](/packages/ahmed-bhs-doctrine-doctor)

PHPackages © 2026

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