ideatic/dump

Displays information about any PHP variable, class or exception.

Maintainers

Details

github.com/ideatic/dump

Source

Issues

Installs: 2 764

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 4

Forks: 1

Open Issues: 0

Language:JavaScript

dev-master 2022-10-20 14:41 UTC

This package is not auto-updated.

Last update: 2024-04-19 16:27:37 UTC


README

Debugging tool which displays information about any PHP variable, class or exception.

Inspired in the tool Krumo developed by mrasnika.

Usage

For using Dump, you only need to include the script, and configure it with the URL of the static resources, and, optionally, with the special paths that your application use:

include 'Dump.php';
Dump::config('/url/to/dump-static', array(
    'APP_PATH' => '/home/app/www',
    'SYSTEM_PATH' => '/home/app/src'
  )
);

And then, for dump information about any variable, resource or exception you only need to do:

dump($var)

Features

  • Interactive dump of almost types of variables.
  • Source code viewer with syntax highlighting.
  • Object reflection.
  • String viewer with plain and html mode.
  • Comprehensive analysis of exceptions.
  • Dynamic overlay that floats over top of web page.

Screenshots