Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oviniciusfeitosa/x-dump
Extreme-Dump(x-dump) for quickly debug and trace your PHP code
https://github.com/oviniciusfeitosa/x-dump
dump php x-dump xd xdump
Last synced: 2 months ago
JSON representation
Extreme-Dump(x-dump) for quickly debug and trace your PHP code
- Host: GitHub
- URL: https://github.com/oviniciusfeitosa/x-dump
- Owner: oviniciusfeitosa
- License: mit
- Created: 2016-04-22T15:29:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-25T17:05:51.000Z (almost 4 years ago)
- Last Synced: 2024-04-24T05:57:33.824Z (9 months ago)
- Topics: dump, php, x-dump, xd, xdump
- Language: PHP
- Homepage: http://vinnyfs89.github.io/x-dump
- Size: 61.5 KB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![thumb-image](./src/x-dump-logo-192x192.png)
x-dump
=====**x-dump** means E**x**treme-**D**ump. 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](https://phpdf.org.br) community and is open for contributions.
## Requirements
- PHP 5.3^
## Install
To have x-dump installed run the command below
```console
composer require "vinnyfs89/x-dump":"dev-master"
```### Alternative installation
You can also clone this project directly or set in your `composer.json`, like this:
```json
"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**
```php
x($param1 [, $param2, ...])
```
```php
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**
```php
x_($param1 [, $param2, ...])
```
```php
xd_($param1 [, $param2, ...])
```:octocat: :smiley: :zap:
### References
- [PHP-DF](https://phpdf.org.br)
- [debug_backtrace](https://www.php.net/manual/pt_BR/function.debug-backtrace.php)
- [PHP](http://php.net)
- [Commit Messages Convention (CMC)](https://github.com/devbrotherhood/cmc)