michaeldrennen / debug-helper
A library to help me output useful debug info during development.
v2.0
2021-11-14 20:09 UTC
Requires
- php: ^7.1|^8.0
- illuminate/support: ^6.0|^7.0
- league/climate: ^3.0
Requires (Dev)
- phpunit/phpunit: ^6.2|^8.0|^9.0
README
#DebugHelper
Introduction
DebugHelper is a little collection of PHP functions to help me view data when debugging.
Installation
To get started with DebugHelper, simply run:
composer require michaeldrennen/debug-helper
DebugHelper tools for Laravel
Pretty print the query log
use Illuminate\Support\Facades\DB; ... DB::enableQueryLog(); // Run queries... $queryLog = DB::getQueryLog(); DebugHelper::laravelPrintQueryLog($queryLog);
License
DebugHelper is open-sourced software licensed under the MIT license