| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 99 | All time: 9,822 This week: 206 | ||||
| Version | License | PHP version | Categories | |||
| php-dumper 1.0 | Free for non-comm... | 5 | PHP 5, Debug, Language |
| Description | Author | |
This class can display a formatted version of variable values. |
Version: 1.0.0.8
Github: https://github.com/marcocesarato/PHP-Dumper
Author: Marco Cesarato
This class can display a formatted version of variable values.
It can take the values of one or more variables and generates a string that displays the variable values in a readable format.
Arrays and objects can be traversed recursively to display its member values.
The class can either return a string with the formatted variable values, display it to the current page or even exit the current script.
use marcocesarato\dumper\Dumper;
$arr = [1,2,3,4,5];
$dump = Dumper::get($arr, $arr /, .../); // Get string of dump
Dumper::out($arr /, .../); // Print
Dumper::fatal($arr /, .../); // Print and die
| Method | Parameters | Description | | ----------- | ----------------------------------- | -------------------------------------------------- | | get | mixed $expression [, mixed $... ]<br>return string | Return dump as string | | out | mixed $expression [, mixed $... ]<br>return void | Print dump | | clean | mixed $expression [, mixed $... ]<br>return void | Clean stream (ob_clean) and print dump | | json | mixed $expression [, mixed $... ]<br>return void | Clean stream (ob_clean) and print json dump | | fatal | mixed $expression [, mixed $... ]<br>return void | Print dump and die | | enableHighlight | return void | Enable Highlight (default true) | | disableHighlight | return void | Disable Highlight | | disableHighlight | return void | Disable Highlight | | getDepth | return int | Get Object/Array dump depth | | setDepth | int $depth<br>return void | Set Object/Array dump depth |
| File | Role | Description | ||
|---|---|---|---|---|
| Example | Example script | |||
| Data | Auxiliary data | |||
| Aux. | Auxiliary script | |||
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Data | Auxiliary data | |||
| Doc. | Documentation | |||
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.