Skip to content

oviniciusfeitosa/x-dump

Repository files navigation

thumb-image

x-dump

x-dump means Extreme-Dump. With this repository you can debug your PHP code allowing you to have all the traceability where it was passed, enabling you to do it quickly and effectively.

Functions like x and xd are provided, for example to make debugging your code easier by the functions , the component provides that the files that were covered so that the application reaches the function.

This code was created by members of the PHP-DF community and is open for contributions.

Requirements

  • PHP 5.3^

Install

To have x-dump installed run the command below

composer require "vinnyfs89/x-dump":"dev-master"

Alternative installation

You can also clone this project directly or set in your composer.json, like this:

  "require-dev": {
    "vinnyfs89/x-dump": "dev-master"
  }

How to use?

The functions x and xd differ because the "x" does not prevent the execution of the application, since the "xd" stop the application. But both do not make the details of one or more informed values.

Examples

x($param1 [, $param2, ...])
xd($param1 [, $param2, ...])

The functions x_() and xd_() do the same x() and xd() respectively, but make the details of one or more informed values using "var_dump" behind the scenes.

Examples

x_($param1 [, $param2, ...])
xd_($param1 [, $param2, ...])

:octocat: 😃 ⚡

References