delight-im/db
A lightweight database abstraction layer for PHP with a simple API for running queries, prepared statements, transactions, and fetching results. It reduces boilerplate while keeping SQL explicit, making it a practical choice for projects that want straightforward database access without a full ORM.
Consider it when:
Look elsewhere when:
For executives: This is a small, MIT-licensed utility that handles database access safely in PHP services. It is not a platform bet — it is a days-of-engineering decision that lets us skip building our own database wrapper and avoid carrying a full ORM into services that do not need one. Cost is zero; the tradeoff is that it has a small community and one maintainer, so we would contain it and keep the ability to replace it. Recommendation: pilot on a low-criticality service, not on the core transaction path.
For engineering: Thin, driver-agnostic layer over PDO with safe querying by default. It removes boilerplate and gives us SQLite-in-tests, PostgreSQL-in-prod flexibility. What it does not give us: migrations, relationships, pooling, or read replicas — those stay our responsibility or belong to Doctrine/Laravel's stack. Because the community is tiny, pin the version, vendor the source into the repo, and write the wrapper behind our own interface so swapping in Doctrine DBAL or native PDO is a one-file change. The wrapper is small enough to audit in an afternoon, which is the main mitigation for the maintenance risk.
How can I help you explore Laravel packages today?