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

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

filisko/pdo-plus
================

PDO+ extends PDO in order to log all your queries. It also includes a Bar Panel for Tracy

v4.1.0(1y ago)1622.1k↑552.5%18MITPHPPHP &gt;=8.0CI failing

Since Aug 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/filisko/pdo-plus)[ Packagist](https://packagist.org/packages/filisko/pdo-plus)[ RSS](/packages/filisko-pdo-plus/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (4)Versions (16)Used By (0)

PDO plus
========

[](#pdo-plus)

[![Codacy Badge](https://camo.githubusercontent.com/b50bb91f623e5208b2b350f0e339893f4340c72dfd08cd4423088d6668bd7ccc/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3532313665356234353736383466356262343364373237626365623363633538)](https://www.codacy.com/gh/filisko/pdo-plus/dashboard?utm_source=github.com&utm_medium=referral&utm_content=filisko/pdo-plus&utm_campaign=Badge_Grade) [![Coverage Status](https://camo.githubusercontent.com/61b5a1ab1d9cefb722852e0e2f683f06da99fb02045b64171f56b962056beeea/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f66696c69736b6f2f70646f2d706c75732f62616467652e7376673f6272616e63683d6769746875622d616374696f6e73)](https://coveralls.io/github/filisko/pdo-plus?branch=github-actions)

PDO plus extends PDO in order to log all your queries. This package also includes a Bar Panel for Tracy (useful for legacy projects), see the result below.

[![PDO logger with Tracy](https://camo.githubusercontent.com/0168290695ba0bafdd1388b1273dcb2e2c8bd3d50e9e21a384b263a203e148fa/68747470733a2f2f692e736e61672e67792f4162455356432e6a7067 "PDO logger with Tracy")](https://camo.githubusercontent.com/0168290695ba0bafdd1388b1273dcb2e2c8bd3d50e9e21a384b263a203e148fa/68747470733a2f2f692e736e61672e67792f4162455356432e6a7067)

Versions
--------

[](#versions)

ReleaseSupported PHP versions4.x.x / master (here now)8.0, 8.1, 8.2, 8.3, 8.4[3.x.x](https://github.com/filisko/pdo-plus/tree/3.x.x)7.2, 7.3, 7.4Installation
------------

[](#installation)

Install via composer:

```
composer require filisko/pdo-plus
```

How to use
----------

[](#how-to-use)

In this example we are using two different PDO instances just to show that it's doable.

```
// Create an instance using PDO plus
$pdoConnection1 = new \Filisko\PDOplus\PDO('mysql:host=127.0.0.1;dbname=my_db', 'my_user', 'my_pass');
$pdoConnection2 = new \Filisko\PDOplus\PDO('mysql:host=127.0.0.1;dbname=my_other_db', 'my_user', 'my_pass');

// ... our SQL queries ...

// Dump logged queries of PDO connection 1
var_dump($pdoConnection1->getLog());

// --- the following code shows how to integrate with Tracy debugger

// Instance for Tracy BarPanel for connection 1
$db1Panel = new \Filisko\PDOplus\Tracy\BarPanel($pdoConnection1);
$db1Panel->title = "DB 1 Panel";

// Instance for Tracy BarPanel for connection 2
$db2Panel = new \Filisko\PDOplus\Tracy\BarPanel($pdoConnection2);
$db2Panel->title = "DB 2 Panel";

// Enables Tracy debugger and adds panels for each connection (easy to integrate with legacy apps!)
\Tracy\Debugger::enable();
\Tracy\Debugger::getBar()->addPanel($db1Panel);
\Tracy\Debugger::getBar()->addPanel($db2Panel);
```

Dev environment setup &amp; tests
---------------------------------

[](#dev-environment-setup--tests)

Build docker image:

```
./dev/build.sh
```

Run tests for all PHP versions:

```
./run_tests.sh

# in case of one specific version
./run_tests.sh 8.2

# simply with composer
composer test
```

Shell into the Docker image:

```
./dev/shell.sh

# change PHP version?:
./switch_php.sh 8.1
```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance40

Moderate activity, may be stable

Popularity38

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 85% 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 ~220 days

Recently: every ~333 days

Total

15

Last Release

500d ago

Major Versions

1.1 → 2.02017-02-28

2.3 → 3.0.02020-05-19

v3.1.1 → v4.0.02021-06-11

3.x-dev → v4.1.02025-02-08

PHP version history (2 changes)v4.0.0PHP &gt;=8.0

v3.2.0PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/42e0d72f42eb7d84f67e20d28606da42e5a3248ca908b1eadb4366aafeae2561?d=identicon)[filisko](/maintainers/filisko)

---

Top Contributors

[![filisko](https://avatars.githubusercontent.com/u/8798694?v=4)](https://github.com/filisko "filisko (68 commits)")[![Ciki](https://avatars.githubusercontent.com/u/342730?v=4)](https://github.com/Ciki "Ciki (4 commits)")[![woytam](https://avatars.githubusercontent.com/u/12713483?v=4)](https://github.com/woytam "woytam (4 commits)")[![patrickkusebauch](https://avatars.githubusercontent.com/u/1620948?v=4)](https://github.com/patrickkusebauch "patrickkusebauch (2 commits)")[![jpxd](https://avatars.githubusercontent.com/u/10384363?v=4)](https://github.com/jpxd "jpxd (1 commits)")[![levinside](https://avatars.githubusercontent.com/u/126450?v=4)](https://github.com/levinside "levinside (1 commits)")

---

Tags

legacypdopdo-loggerprofilerprofilingtracylogdebugsqlpdotracyphp8queries

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k595.8M6.5k](/packages/doctrine-dbal)[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k5.8M74](/packages/ifsnop-mysqldump-php)[nette/database

💾 Nette Database: layer with a familiar PDO-like API but much more powerful. Building queries, advanced joins, drivers for MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle.

5436.9M255](/packages/nette-database)[panique/pdo-debug

A super-simple function that returns the full SQL query from your PDO statements

69109.5k5](/packages/panique-pdo-debug)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4563.1M37](/packages/aura-sqlquery)[paragonie/easydb

Easy-to-use database abstraction

734280.1k24](/packages/paragonie-easydb)

PHPackages © 2026

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