This package is abandoned and no longer maintained. No replacement package was suggested.
A light-weight query logging utility.
A simple query logging utility, with built in benchmarking.
use Petflow\QueryLog\QueryLog; $queryLog = new QueryLog; $query = "SELECT * FROM users WHERE user_id = ?;"; $bindings = array('user_id' => $user_id); $queryLog->start(); // do query here $queryLog->stop(); // automatically calculates elapsed time $queryLog->addElapsed($query, $bindings); $log = $queryLog->getQueryLog();