dlcrush / laravel-dbug by dlcrush

A library for nicer looking variable dumps comparable to ColdFusion's cfdump.
178
1
2
Package Data
Maintainer Username: dlcrush
Maintainer Contact: dlcrush@mail.roanoke.edu (David Crush)
Package Create Date: 2015-02-05
Package Last Update: 2015-02-28
Home Page:
Language: PHP
License: Unknown
Last Refreshed: 2024-04-24 03:04:27
Package Statistics
Total Downloads: 178
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 1
Total Open Issues: 2

DBug

This is a laravel package that makes your variable dumps look nicer. The output is comparable to ColdFusion's cfdump.

Based off of dBug class https://github.com/ospinto/dbug

Installation

This will walk you through how to set up the package.

  1. Add the following to your composer.json under require:

"dlcrush/laravel-dbug": "~1.1.0"

  1. Composer update

  2. Add the Service Provider to the providers array in app/config/app.php

'dlcrush\DBug\DBugServiceProvider',
  1. Add alias in app/config/app.php
'DBug'			  => 'dlcrush\DBug\Facades\DBug',

Usage

To dump out a variable, do the following:

DBug::DBug($var);

To dump and then die, do the following:

DBug::DBug($var, true);