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.6.9(2mo ago)02.1k↓46.3%1[2 PRs](https://github.com/Karmabunny/kbpdb/pulls)1GPL-2.0-or-laterPHPPHP ^7|^8CI failing

Since Mar 9Pushed 1mo ago8 watchersCompare

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

READMEChangelogDependencies (5)Versions (101)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

52

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 97.5% 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 ~21 days

Total

85

Last Release

89d 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 (713 commits)")[![benno-truevault](https://avatars.githubusercontent.com/u/247051752?v=4)](https://github.com/benno-truevault "benno-truevault (11 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)")

---

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.7k578.4M5.6k](/packages/doctrine-dbal)[aura/sqlquery

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

4572.9M34](/packages/aura-sqlquery)[aura/sqlschema

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

41234.1k4](/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.

5632.5M43](/packages/aura-sql)[atlas/query

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

41249.0k7](/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.

114542.8k6](/packages/apix-cache)

PHPackages © 2026

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