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(3mo ago)28.2k—5.4%1MITPHPPHP ^8.2

Since Apr 20Pushed 3mo 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 2d 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

49

—

FairBetter than 94% of packages

Maintenance78

Regular maintenance activity

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

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

116d 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

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)

PHPackages © 2026

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