basteyy/var-debug
Composer 安装命令:
composer require basteyy/var-debug
包简介
Simple var dumper
README 文档
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
统计信息
- 总下载量: 54
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: CC0-1.0
- 更新时间: 2021-12-07