michaeldrennen/debug-helper

A library to help me output useful debug info during development.

v2.0 2021-11-14 20:09 UTC

This package is auto-updated.

Last update: 2024-11-29 05:03:39 UTC


README

#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