basteyy / var-debug
Simple var dumper
1.1.2
2023-11-15 16:55 UTC
README
Sometimes you need to know what's inside a variable, but you don't want to use var_dump() because it's too verbose or whatever. This function is a better alternative. Just pass it a variable and it will return a page with the variable's contents in a readable format.
Usage
<?php // get autoloader require_once 'vendor/autoload.php'; // use the function varDebug($variable);
Configuration
You deactive superglobals by setting the config value to false.
const VAR_DEBUG_REQUEST = false; // $_REQUEST will not be shown const VAR_DEBUG_POST = false; // $_POST will not be shown const VAR_DEBUG_GET = false; // $_GET will not be shown const VAR_DEBUG_SERVER = false; // $_SERVER will not be shown const VAR_DEBUG_BACKTRACE = false; // backtrace will not be shown
Installation
composer require --dev basteyy/var-debug