PHPackages                             peoplepath/pdo-apm - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. peoplepath/pdo-apm

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

peoplepath/pdo-apm
==================

Simple APM for PDO adapter

0.2.2(1mo ago)1218MITPHPPHP &gt;=8.4CI failing

Since Feb 14Pushed 1mo agoCompare

[ Source](https://github.com/peoplepath/pdo-amp)[ Packagist](https://packagist.org/packages/peoplepath/pdo-apm)[ RSS](/packages/peoplepath-pdo-apm/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (8)Versions (6)Used By (0)

PDO APM
=======

[](#pdo-apm)

[![PHP Version](https://camo.githubusercontent.com/9c2f8ad80d34105266a94c4c06234f8ed18c968d3595039c2d9a7becd1e71c8b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e342d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

A simple, lightweight Application Performance Monitoring (APM) library for PDO that provides detailed insights into your database operations through an event-driven architecture.

Features
--------

[](#features)

- **Lightweight** - Minimal overhead with no external dependencies
- **Zero Configuration** - Drop-in replacement for standard PDO with no configuration required
- **Query Profiling** - Track execution time, row counts, and parameters for all database operations
- **Event-Driven Architecture** - Subscribe to specific database events using a clean observer pattern
- **Transaction Tracking** - Monitor transaction lifecycle (begin, commit, rollback)
- **Error Tracking** - Capture failed queries with full context including parameters

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

[](#installation)

Install via Composer:

```
composer require peoplepath/pdo-apm
```

Requirements
------------

[](#requirements)

- PHP &gt;= 8.4
- PDO extension

Quick Start
-----------

[](#quick-start)

```
