PHPackages                             cedricziel/doctrine-driver-pdo-pgsql - 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. cedricziel/doctrine-driver-pdo-pgsql

ActiveLibrary

cedricziel/doctrine-driver-pdo-pgsql
====================================

A doctrine dbal driver for PostgreSQL that honors the unix\_socket option

v1.0.1(4y ago)137MITPHP

Since Jun 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/cedricziel/doctrine-driver-pdo-pgsql)[ Packagist](https://packagist.org/packages/cedricziel/doctrine-driver-pdo-pgsql)[ RSS](/packages/cedricziel-doctrine-driver-pdo-pgsql/feed)WikiDiscussions main Synced today

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

doctrine-driver-pdo-pgsql
=========================

[](#doctrine-driver-pdo-pgsql)

A doctrine driver for PostgreSQL that supports the unix\_socket option

Why?
----

[](#why)

When you want to configure the Doctrine DBAL via DSN, you cannot use the `unix_socket` option. This is a modified driver, which lets you use it.

This is mandatory for services like Google CloudSQL, which primarily relies on socket connections.

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

[](#installation)

```
composer require cedricziel/doctrine-driver-pdo-pgsql

```

Usage
-----

[](#usage)

To use this driver with Symfony, you can add the following to your `doctrine.yaml`configuration file:

```
doctrine:
    dbal:
        driver_class: CedricZiel\DoctrineDriverDbalPDOPgSQL\PgSQLSocketDriver
```

*NOTE:* To enable the driver manager, to select your driver, the DSN supplied via `DATABASE_URL` *must* be schamless.

For example:

```
# previously
DATABASE_URL="postgresql//postgres:postgres@127.0.0.1:5432/postgres?serverVersion=13&charset=utf8"

# afterwards
DATABASE_URL="//postgres:postgres@127.0.0.1:5432/postgres?serverVersion=13&charset=utf8&unix_socket=/path/to/socket"

```

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

1799d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ac8297e12671d91305ec01ab56add8cb141fa82d678ba96f0012eeb7f88ea0c?d=identicon)[cedricziel](/maintainers/cedricziel)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/cedricziel-doctrine-driver-pdo-pgsql/health.svg)

```
[![Health](https://phpackages.com/badges/cedricziel-doctrine-driver-pdo-pgsql/health.svg)](https://phpackages.com/packages/cedricziel-doctrine-driver-pdo-pgsql)
```

###  Alternatives

[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k3](/packages/elgg-elgg)[neos/flow

Flow Application Framework

862.0M449](/packages/neos-flow)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[rias/statamic-redirect

28298.4k](/packages/rias-statamic-redirect)

PHPackages © 2026

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