composer require idealogica/debug:~1.1.0
There are few global functions provided by this package that can be used for any kind of debugging:
Dumps given arguments using symfony/var-dumper.
Dumps given arguments using symfony/var-dumper and stops execution.
Prints backtrace in HTML or CLI mode.
Build-in PHP function.
Dumps given arguments using var_dump (build-in PHP function) and stops execution.
Prints backtrace.
Dumps given arguments using Javascript (console::log).
Dumps given arguments using Javascript (console::log) and stops execution.
Sends backtrace using Javascript (console::log).
Dumps given arguments using Chrome Logger.
Dumps given arguments using Chrome Logger and stops execution.
Sends backtrace using Chrome Logger.
Calculates code execution time. Call it twice to get time in seconds between these calls.
Licensed under a MIT License.