karmabunny / pdb
PDO wrapper
v1.6.9
2026-02-19 02:40 UTC
Requires
- php: ^7|^8
- ext-dom: *
- ext-libxml: *
- ext-pdo: *
- karmabunny/kb: ^3.58|^4
Requires (Dev)
- karmabunny/rdb: ^1.16
- phpcompatibility/php-compatibility: ^9.3
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9
Suggests
- karmabunny/rdb: For persistent caching - using the PdbCacheRedis class
This package is auto-updated.
Last update: 2026-05-19 11:11:19 UTC
README
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
Add as a dependency:
composer require karmabunny/pdb
Examples
Usage is documented in the docs/ folder.
Contributing
Please see the TODO and CONTRIBUTING documents.