Skip to content

tomasfejfar/enhanced-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enhanced Dump

Build Status

o----php in index.php line 3----o
array(2) {
  [0]=>
  string(5) "Lorem"
  ["x"]=>
  string(9) "Not ipsum"
}
o-------------------------------o

Installation

Using as auto-prepend file

Add this file to your php.ini as auto prepend file:

auto_prepend_file = /some/path/fnc.php

then restart your apache/php.

Using composer

composer require tomasfejfar/enhanced-dump --dev

Usage:

d() - vardumps with location

dd() - vardumps with location and die

ds() - vardumps as string with location

dsd() - vardumps as string with location and die

dsql($toString) - vardumps as string into textarea with autoselect (useful for copying generated sql)

dmem() - dumps memory info

dtable() - dumps tabular data

dxml() - pretty prints any XML

About

Better PHP var dump

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages