PHPackages                             efureev/swoole-doctrine-dbal-pgsql-driver - 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. efureev/swoole-doctrine-dbal-pgsql-driver

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

efureev/swoole-doctrine-dbal-pgsql-driver
=========================================

The Postgres Swoole 5 driver for Doctrine

v2.1.4(2mo ago)27.4k↓50%1MITPHPPHP ^8.2

Since Apr 20Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/efureev/swoole-doctrine-dbal-pgsql-driver)[ Packagist](https://packagist.org/packages/efureev/swoole-doctrine-dbal-pgsql-driver)[ RSS](/packages/efureev-swoole-doctrine-dbal-pgsql-driver/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (20)Versions (14)Used By (0)

doctrine-dbal-swoole-pgsql-driver
=================================

[](#doctrine-dbal-swoole-pgsql-driver)

Doctrine DBAL Driver for Swoole 5 Postgresql database connections

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

[](#installation)

The easiest way to install this package is through composer:

```
$ composer require efureev/swoole-doctrine-dbal-pgsql-driver
```

Example
-------

[](#example)

You can test functionality using supplied docker image, located in [example](example) folder. Cli example can be found in [example/cli.php](example/cli.php). HTTP server example can be found in [example/server.php](example/server.php)

App Config:

```
doctrine:
  dbal:
    default_connection: 'swoole'
    connections:
      swoole:
        dbname: '%env(DB_MASTER_NAME)%'
        host: '%env(DB_MASTER_HOST)%'
        port: '%env(DB_MASTER_PORT)%'
        user: '%env(DB_MASTER_USER)%'
        password: '%env(DB_MASTER_PASS)%'
        driver_class: 'Swoole\Packages\Doctrine\DBAL\PgSQL\Driver'
        server_version: '15'
        options:
          poolSize: 3 # MAX count connections in one pool
          usedTimes: 3 # 1 connection (in pool) will be re-used maximum N queries
          connectionTTL: 60 # when connection not used this time(seconds) - it will be close (free)
          tickFrequency: 60000 # when need check possibilities downscale (close) opened connection to DB in pools
          connectionDelay: 2 # time(seconds) for waiting response from pool
          useConnectionPool: true # if false, will create new connect instead of using pool
          retryMaxAttempts: 2 # if connection in pool was timeout (before use) then try re-connect
          retryDelay: 1000 # delay to try fetch from pool again(milliseconds) if no connect available
```

Add Bundle to the `bundles.php`:

```
[
    SwooleDoctrineDbalPoolBundle::class => ['all' => true],
]
```

It's all.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance87

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~88 days

Recently: every ~128 days

Total

13

Last Release

63d ago

Major Versions

v1.0.5 → v2.0.02024-07-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/62a6e061d1ccab4d5de8dcba717b7634f91e4842b32ca26420b8261c66104bf7?d=identicon)[efureev](/maintainers/efureev)

---

Top Contributors

[![efureev](https://avatars.githubusercontent.com/u/5524684?v=4)](https://github.com/efureev "efureev (3 commits)")[![silvenger](https://avatars.githubusercontent.com/u/31940335?v=4)](https://github.com/silvenger "silvenger (3 commits)")

---

Tags

doctrineswoolesymfonysymfonydbalswooledocrtine

###  Code Quality

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/efureev-swoole-doctrine-dbal-pgsql-driver/health.svg)

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

###  Alternatives

[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[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)[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)[nemo64/dbal-rds-data

rds-data driver for doctrine dbal

2713.2k](/packages/nemo64-dbal-rds-data)[flow-php/doctrine-dbal-bulk

Bulk inserts and updates for Doctrine DBAL

14295.2k1](/packages/flow-php-doctrine-dbal-bulk)

PHPackages © 2026

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