co-stack / dbal-profiler
doctrine/dbal connection decorator for profiling queries
2.3.0
2025-07-04 00:33 UTC
Requires
- php: >=8.2
- co-stack/lib: >= 6.5
- doctrine/dbal: ^4.0.0
Requires (Dev)
- phpunit/phpunit: ^11.5
README
This package aims to provide a light and framework-agnostic way to profile DBAL queries.
Installation
composer req co-stack/dbal-profiler
Usage
Have a look at the MainUseCaseTest.php, it will tell you everything you need to know.
Credits
This package is heavily inspired by the symfony doctrine bridge: https://github.com/symfony/symfony/tree/7.4/src/Symfony/Bridge/Doctrine/Middleware/Debug
Since it does not quite follow my ideal of OOP/DDD, and it was not usable in the projects I am currently working on, I felt the needed to rewrite it, following my own requirements and vibe (no, not AI vibe, this is 100% handcrafted).