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.
<?php
// get autoloader
require_once 'vendor/autoload.php';
// use the function
varDebug($variable);
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
composer require --dev basteyy/var-debug