PHPackages                             karmabunny/pdb - 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. karmabunny/pdb

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

karmabunny/pdb
==============

PDO wrapper

v1.8.10(1mo ago)03.7k↓44.7%1[5 PRs](https://github.com/Karmabunny/kbpdb/pulls)1GPL-2.0-or-laterPHPPHP ^7|^8CI passing

Since Mar 9Pushed 2w ago8 watchersCompare

[ Source](https://github.com/Karmabunny/kbpdb)[ Packagist](https://packagist.org/packages/karmabunny/pdb)[ RSS](/packages/karmabunny-pdb/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (11)Versions (107)Used By (1)

PDB
---

[](#pdb)

A PDO wrapper for fun and profit.

This is ripped directly from Sprout 3 with a lot of modification. There's a set of (in-progress) compat classes to enable one to 'backport' the updates here into a Sprout site.

General improvements are things like:

- consistent db-agnostic column escapes
- query builder
- models
- improved dbsync
- migration exports
- adapter architecture for other DBs (postgres, sqlite, mssql)
- more tests
- data binding interface

Install
-------

[](#install)

Add as a dependency:

```
composer require karmabunny/pdb
```

Examples
--------

[](#examples)

Usage is documented in the `docs/` folder.

Contributing
------------

[](#contributing)

Please see the TODO and CONTRIBUTING documents.

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance96

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 97.1% 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 ~22 days

Recently: every ~43 days

Total

88

Last Release

32d ago

Major Versions

v0.33.40 → v1.0.02025-02-17

v0.33.41 → v1.0.32025-02-23

v0.x-dev → v1.0.52025-03-11

PHP version history (2 changes)v0.1PHP ^7

v0.11.11PHP ^7|^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/11b33084210490439a6fb2c0b277e0bf39f8d0e368f20bebb703834003a617df?d=identicon)[karmabunny](/maintainers/karmabunny)

---

Top Contributors

[![gwillz](https://avatars.githubusercontent.com/u/3466850?v=4)](https://github.com/gwillz "gwillz (724 commits)")[![benno-truevault](https://avatars.githubusercontent.com/u/247051752?v=4)](https://github.com/benno-truevault "benno-truevault (13 commits)")[![jamiemonksuk](https://avatars.githubusercontent.com/u/25573428?v=4)](https://github.com/jamiemonksuk "jamiemonksuk (5 commits)")[![aitken85](https://avatars.githubusercontent.com/u/210505?v=4)](https://github.com/aitken85 "aitken85 (2 commits)")[![chris-karmabunny](https://avatars.githubusercontent.com/u/210505?v=4)](https://github.com/chris-karmabunny "chris-karmabunny (1 commits)")[![jedso](https://avatars.githubusercontent.com/u/26863777?v=4)](https://github.com/jedso "jedso (1 commits)")

---

Tags

schemadatabasemysqlsqlitepostgrespdopgsqldbsyncpdb

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/karmabunny-pdb/health.svg)

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

###  Alternatives

[doctrine/dbal

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

9.7k614.3M7.4k](/packages/doctrine-dbal)[aura/sqlquery

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

4573.2M41](/packages/aura-sqlquery)[aura/sqlschema

Provides facilities to read table names and table columns from a database using PDO.

41245.4k4](/packages/aura-sqlschema)[aura/sql

A PDO extension that provides lazy connections, array quoting, query profiling, value binding, and convenience methods for common fetch styles. Because it extends PDO, existing code that uses PDO can use this without any changes to the existing code.

5662.7M60](/packages/aura-sql)[atlas/query

Object-oriented query builders and performers for MySQL, Postgres, SQLite, and SQLServer.

41260.2k7](/packages/atlas-query)[apix/cache

A thin PSR-6 cache wrapper with a generic interface to various caching backends emphasising cache taggging and indexing to Redis, Memcached, PDO/SQL, APC and other adapters.

114550.1k6](/packages/apix-cache)

PHPackages © 2026

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