Download the PHP package jardisadapter/dbconnection without Composer
On this page you can find all versions of the php package jardisadapter/dbconnection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jardisadapter/dbconnection
More information about jardisadapter/dbconnection
Files in jardisadapter/dbconnection
Package dbconnection
Short Description PDO connection factory with read/write splitting, round-robin load balancing, and automatic health checks
License MIT
Homepage https://docs.jardis.io/en/adapter/dbconnection
Informations about the package dbconnection
Jardis DbConnection
Part of the Jardis Business Platform — Enterprise-grade PHP components for Domain-Driven Design
PDO connection factory with read/write splitting, round-robin load balancing, and automatic health checks. Create typed connections for MySQL, PostgreSQL, or SQLite via ConnectionFactory, then compose them into a ConnectionPool for replica-aware query routing. Health checks run SELECT 1 with a configurable TTL cache so failover is fast and non-intrusive.
Features
- Read/Write Splitting — Route writes to the primary and reads to replicas automatically
- Round-Robin Load Balancing — Distributes read queries evenly across all configured readers
- Health Checks —
SELECT 1validation with positive and negative result caching - Transaction Support —
beginTransaction(),commit(),rollback(),inTransaction()on every connection - Reconnect —
reconnect()rebuilds the PDO connection from config on failure - MySQL / PostgreSQL / SQLite — Dedicated factory methods per driver with typed config
- External PDO Wrapping —
fromPdo()integrates existing connections without refactoring - ConnectionPool Stats —
getStats()exposes reads, writes, and failover counts at runtime
Installation
Quick Start
Advanced Usage
PDO Connection Options
All driver factory methods accept an options array passed directly to the PDO constructor. This is useful for long-running processes (RoadRunner, Swoole, FrankenPHP) where persistent connections avoid reconnect overhead per request:
Note: Persistent connections are reused across requests within the same worker process. Ensure your database server is configured for the expected number of concurrent connections (workers × connections per worker).
These options apply per connection — in a ConnectionPool, each connection can have its own settings.
Documentation
Full documentation, guides, and API reference:
docs.jardis.io/en/adapter/dbconnection
License
This package is licensed under the MIT License.
Jardis · Documentation · Headgent
KI-gestützte Entwicklung
Dieses Package liefert einen Skill für Claude Code, Cursor, Continue und Aider mit. Installation im Konsumentenprojekt:
Mehr Details: https://docs.jardis.io/skills
All versions of dbconnection with dependencies
jardissupport/dotenv Version ^1.0
ext-pdo Version *
jardissupport/contract Version ^1.0