bohmm/php-dumper
最新稳定版本:v1.0.0
Composer 安装命令:
composer require bohmm/php-dumper
包简介
A simple tool for displaying pretty, colorful and clear formatted PHP variables.
关键字:
README 文档
README
A simple tool for displaying pretty, colorful and clear formatted PHP variables.
supported types: null boolean integer float string array object closure resource
Install
easy installation via composer
composer require --dev bohmm/php-dumper
Usage
Using PHP dumper is easy. Enter a variable as the first parameter in the constructor.
PHP dumper allows two display modes default or inline, which can be set using the
second parameter (false = default, true = inline).
default usage:
require __DIR__ . '/path/to/autoload.php'; $variable = 'hello world'; # display default mode $dumper = new \Bohmm\PhpDumper\Dumper($variable); echo $dumper->dump(); # display inline mode $dumper = new \Bohmm\PhpDumper\Dumper($variable, true); echo $dumper->dump();
or via helper functions dump or ddump:
require __DIR__ . '/path/to/autoload.php'; $variable = 'hello world'; # display the variable (default or inline mode) dump($variable); dump($variable, true); # display the variable and terminate other scripts (default or inline mode) ddump($variable); ddump($variable, true);
Disclaimer
This software is provided "as is", without any warranty of any kind, and is used at the user's own risk. The author assumes no liability for damages resulting from the use or misuse of this package.
License
PHP dumper is provided under the MIT license.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-05