PHPackages                             codercms/laravel-pg-conn-pool - 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. codercms/laravel-pg-conn-pool

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

codercms/laravel-pg-conn-pool
=============================

Laravel PostgreSQL connection pool

v1.0.2(5y ago)6351MITPHPPHP ^7.4CI failing

Since Jan 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/codercms/laravel-pg-conn-pool)[ Packagist](https://packagist.org/packages/codercms/laravel-pg-conn-pool)[ RSS](/packages/codercms-laravel-pg-conn-pool/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (5)Versions (7)Used By (0)

laravel-pg-conn-pool
====================

[](#laravel-pg-conn-pool)

Laravel PostgreSQL connection pool

**WARNING**: The package is not production-ready yet (only for testing purposes).

Reasons:

1. Gaining more performance to the application

Requirements:

1. PHP 7.4
2. Laravel 6.x
3. Swoole 4.x and higher
4. ext-pq

Usage
-----

[](#usage)

Configuration (`config/database.php`):

```
'pgsql_pool' => [
    // driver name that supports connection pooling
    'driver' => 'pgsql_pool',

    // how much connections is needed
    'max_active' => 4,
    // minimum number of active connections
    'min_active' => 2,
    // how much time to wait for an avaiable connection
    'max_wait_time' => 5.0, // 5 seconds
    // automatically close connections which are idle more than a minute
    'max_idle_time' => 60,
    // how often to check idle connections
    'validation_interval' => 30.0, // every 30 seconds

    // for more paremeters read the - https://github.com/makise-co/pool
    // parameter names in the connection config should be in snake_case

    // default postgres driver config directives below
    'url' => env('DATABASE_URL'),
    'host' => env('DB_HOST', '127.0.0.1'),
    'port' => env('DB_PORT', '5432'),
    'database' => env('DB_DATABASE', 'forge'),
    'username' => env('DB_USERNAME', 'forge'),
    'password' => env('DB_PASSWORD', ''),
    'charset' => 'utf8',
    'prefix' => '',
    'prefix_indexes' => true,
    'schema' => 'public',
    'sslmode' => 'prefer',
],

```

Notes
-----

[](#notes)

- The following methods on LazyConnection may not work (because they rely on the real connection):
    - setPdo
    - setReadPdo
    - disconnect
    - reconnect
- All connections management is performed by connection pool, not by Laravel
- Each coroutine can take only one connection from the pool

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

5

Last Release

2070d ago

Major Versions

0.0.2 → v1.0.02020-09-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/41348018d9b5a065cd3f4ae969e40f8a50b8e14317723847f609704e790c49e8?d=identicon)[codercms](/maintainers/codercms)

---

Top Contributors

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

---

Tags

laravelpostgresConnectionpool

### Embed Badge

![Health badge](/badges/codercms-laravel-pg-conn-pool/health.svg)

```
[![Health](https://phpackages.com/badges/codercms-laravel-pg-conn-pool/health.svg)](https://phpackages.com/packages/codercms-laravel-pg-conn-pool)
```

###  Alternatives

[rennokki/befriended

Eloquent Befriended brings social media-like features like following, blocking and filtering content based on following or blocked models.

76292.2k1](/packages/rennokki-befriended)[orptech/laravel-migration-partition

Laravel extensions that extends Illuminate to enable partitioned table creation within Laravel migrations.

3426.7k](/packages/orptech-laravel-migration-partition)[racklin/pgschema

postgresql schemas for laravel 5

225.9k](/packages/racklin-pgschema)

PHPackages © 2026

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