PHPackages                             dragonwize/doctrine-postgres-ulid - 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. dragonwize/doctrine-postgres-ulid

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

dragonwize/doctrine-postgres-ulid
=================================

Doctrine type for Postgres pgx\_ulid extension.

v0.5.0(5mo ago)2227MITPHPPHP ^8.2

Since Jan 6Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/dragonwize/doctrine-postgres-ulid)[ Packagist](https://packagist.org/packages/dragonwize/doctrine-postgres-ulid)[ RSS](/packages/dragonwize-doctrine-postgres-ulid/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Doctrine Postgres ULID
======================

[](#doctrine-postgres-ulid)

Doctrine DBAL column type for Postgres pgx\_ulid extension.

Requirements
------------

[](#requirements)

Technically, this can (for now) be used with any DB type that is `ulid` in the DB. However, this will probably diverge in the future.

This is designed to work with the Postgresql extension [pgx\_ulid](https://github.com/pksunkara/pgx_ulid).

The pgx\_ulid extension or some other extension that provides the `ulid` column type to Postgres must be installed for this to work.

Usage
-----

[](#usage)

### Symfony

[](#symfony)

```
# config/packages/doctrine.yaml
doctrine:
    dbal:
        types:
            pgx_ulid: \Dragonwize\Doctrine\Type\PgxUlidType
```

### Doctrine Direct

[](#doctrine-direct)

For use in Symfony consider using symfony/doctrine-bridge
---------------------------------------------------------

[](#for-use-in-symfony-consider-using-symfonydoctrine-bridge)

[symfony/doctrine-bridge](https://github.com/symfony/doctrine-bridge) provides a ULID Doctrine DBAL type already and it works in more DB's and situations. The doctrine-bridge version is great if you need the flexibility it provides.

This `ulid` type is desgined for simplicity in a specific scenario.

- You must be using a DB that uses the `ulid` column type. (eg. Postgres with pgx\_ulid)
- That type must be returned as a standard 26 char string.
- You must provide the ULID genaration. [symfony/uid component](https://github.com/symfony/uid) is one option for this. @todo Later this will support using DB based generation.

Under those conditions we can use a simple string type instead of an object as the PHP value which greatly simplifies value handling in many scenarios.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance70

Regular maintenance activity

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

177d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/98619?v=4)[Alan Doucette](/maintainers/dragonwize)[@dragonwize](https://github.com/dragonwize)

---

Top Contributors

[![dragonwize](https://avatars.githubusercontent.com/u/98619?v=4)](https://github.com/dragonwize "dragonwize (2 commits)")

---

Tags

doctrinepostgresdbalulid

### Embed Badge

![Health badge](/badges/dragonwize-doctrine-postgres-ulid/health.svg)

```
[![Health](https://phpackages.com/badges/dragonwize-doctrine-postgres-ulid/health.svg)](https://phpackages.com/packages/dragonwize-doctrine-postgres-ulid)
```

###  Alternatives

[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.

4585.8M4](/packages/martin-georgiev-postgresql-for-doctrine)[scienta/doctrine-json-functions

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

58825.9M54](/packages/scienta-doctrine-json-functions)[flow-php/doctrine-dbal-bulk

Bulk inserts and updates for Doctrine DBAL

14385.8k4](/packages/flow-php-doctrine-dbal-bulk)[nettrine/dbal

Doctrine DBAL for Nette Framework

332.7M23](/packages/nettrine-dbal)[jawira/db-draw

📐 Takes a DoctrineORM connection and generates a database diagram in .puml format

22113.6k3](/packages/jawira-db-draw)

PHPackages © 2026

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