PHPackages                             o6web/pdo - 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. o6web/pdo

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

o6web/pdo
=========

Extension of the base PHP PDO class with some added shortcuts and built-in logging

1.1.2(1mo ago)059PHPPHP &gt;=7.4.0

Since Dec 24Pushed 1mo agoCompare

[ Source](https://github.com/o6web/PDO)[ Packagist](https://packagist.org/packages/o6web/pdo)[ Docs](https://www.o6web.net)[ RSS](/packages/o6web-pdo/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (6)Used By (0)

PDO
===

[](#pdo)

Extension of the base PHP PDO class with some added shortcuts and built-in logging for use with O6 Web Properties projects. This was originally part of an internal package. We've opened it up in case it proves helpful for anyone else but future development will be based on O6's needs.

Usage
-----

[](#usage)

```
use o6web\PDO\Connection;
use o6web\PDO\ConnectionCollection;
use o6web\PDO\PDO;

// Build a collection of connections
$connections = [];

$connections['read'] = new Connection('read', $readDsn, $readUser, $readPassword, $readOptions);
$connections['write'] = new Connection('write', $writeDsn, $writeUser, $writePassword, $writeOptions)

$connectionCollection = new ConnectionCollection($connections);

// Get a collection from the connection
$pdo = $connectionCollection->get('read')->getConnection();

// Instantiate a single PDO connection
$pdo = new PDO($dsn, $user, $password, $options);

// Optional: Set a logger on the connection
$pdo->setLogger($logger);
```

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

[](#installation)

Simply add a dependency on o6web/pdo to your composer.json file if you use [Composer](https://getcomposer.org/) to manage the dependencies of your project:

```
composer require o6web/pdo
```

Although it's recommended to use Composer, you can actually include the file(s) any way you want.

License
-------

[](#license)

PDO is [MIT](http://opensource.org/licenses/MIT) licensed.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance91

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

5

Last Release

42d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0225f44837a665c8a143afa50a34a406a769c523dba31e4cdf73fd0530dede45?d=identicon)[cjrasmussen](/maintainers/cjrasmussen)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/o6web-pdo/health.svg)

```
[![Health](https://phpackages.com/badges/o6web-pdo/health.svg)](https://phpackages.com/packages/o6web-pdo)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[getgrav/grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS

15.6k86.4k1](/packages/getgrav-grav)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1396.0k44](/packages/mahocommerce-maho)

PHPackages © 2026

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