tomasfejfar / enhanced-dump
2.1.0
2017-03-08 00:08 UTC
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: 6.0.3
- symfony/process: 3.2.x-dev#32646a7c
This package is auto-updated.
Last update: 2024-11-06 09:47:24 UTC
README
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