PHPackages                             gollumsf/doctrine-type - 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. gollumsf/doctrine-type

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

gollumsf/doctrine-type
======================

Add list of type for doctrine

v1.2.2(4y ago)0807GPL-3.0-or-later

Since Oct 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/GollumSF/doctrine-type)[ Packagist](https://packagist.org/packages/gollumsf/doctrine-type)[ Docs](https://github.com/GollumSF/doctrine-type)[ RSS](/packages/gollumsf-doctrine-type/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Doctrine TinyInt
================

[](#doctrine-tinyint)

Add list of type for doctrine (metapackage)

Installation:
-------------

[](#installation)

```
composer require gollumsf/doctrine-type
```

Configuration:
--------------

[](#configuration)

```
doctrine:
    dbal:
        types:
            tinyint:  GollumSF\Doctrine\TinyInt # Add TINYINT type
            array_pipe:  GollumSF\Doctrine\ArrayPipe # Add array pipe transformer [ 'VAL1', 'VAL2' ] => 'VAL1|VAL2'
            enum_my_enum:  App\Doctrine\MyEnum # Add ENUM type (customable by enum)
```

Usage:
------

[](#usage)

```
namespace App\Doctrine;

use GollumSF\Doctrine;
use App\Entity\MyEnum as Enum;

class MyEnum extends EnumType {

	public function getEnum(): string {
		return Enum::class;
	}
}

namespace App\Entity;

use GollumSF\Enum\Enum;
use Doctrine\ORM\Mapping as ORM;

class MyEnum extends Enum {
	const VALUE1 = 'VALUE1';
	const VALUE2 = 'VALUE2';
	const VALUE3 = 'VALUE3';
}

/**
 * @ORM\Table()
 */
class Entity {

	/**
	 * @ORM\Column(type="tinyint")
	 * @var int
	 */
	private $tinyint;

	/**
	 * @ORM\Column(type="array_pipe")
	 * @var int
	 */
	private $arrayPipe = [
		'ROLE_EXAMPLE', 'ROLE_USER', 'ROLE_ADMIN'
	];
	// Storage data in database with value: ROLE_EXAMPLE|ROLE_USER|ROLE_ADMIN

	/**
	 * @ORM\Column(type="enum_my_enum")
	 * @var int
	 */
	private $enum;

	/////////
	// ... //
	/////////

}
```

Single packages:
----------------

[](#single-packages)

-
-
-

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~324 days

Total

5

Last Release

1501d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6690bb36165854e1db86762d56c22351ff844b12f59e5c91993a6d793f098cfb?d=identicon)[Smeagolworms4](/maintainers/Smeagolworms4)

---

Top Contributors

[![Smeagolworms4](https://avatars.githubusercontent.com/u/4448640?v=4)](https://github.com/Smeagolworms4 "Smeagolworms4 (9 commits)")

---

Tags

typepackagedoctrinemetametapackage

### Embed Badge

![Health badge](/badges/gollumsf-doctrine-type/health.svg)

```
[![Health](https://phpackages.com/badges/gollumsf-doctrine-type/health.svg)](https://phpackages.com/packages/gollumsf-doctrine-type)
```

###  Alternatives

[symfony/property-info

Extracts information about PHP class' properties using metadata of popular sources

2.2k270.7M1.1k](/packages/symfony-property-info)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4627.0M12](/packages/fresh-doctrine-enum-bundle)[oro/doctrine-extensions

Doctrine Extensions for MySQL and PostgreSQL.

34312.1M23](/packages/oro-doctrine-extensions)[vasek-purchart/doctrine-date-time-immutable-types

Doctrine DateTimeImmutable types

43229.4k](/packages/vasek-purchart-doctrine-date-time-immutable-types)[vasek-purchart/doctrine-date-time-immutable-types-bundle

Bundle integration of Doctrine DateTimeImmutable types for Symfony

1085.6k](/packages/vasek-purchart-doctrine-date-time-immutable-types-bundle)

PHPackages © 2026

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