vinnyfs89/x-dump

Simple way to debug PHP variables

Fund package maintenance!
Patreon
Ko Fi

Installs: 3 526

Dependents: 0

Suggesters: 0

Security: 0

Stars: 12

Watchers: 4

Forks: 2

1.2.0-stable 2019-11-21 04:45 UTC

This package is auto-updated.

Last update: 2024-04-26 00:15:15 UTC


README

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