/DebugHelper

A library of code to help me output readable debug output during development.

Primary LanguagePHPMIT LicenseMIT

#DebugHelper

Build Status Latest Stable Version Total Downloads License

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