承接 bohmm/php-dumper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

Banner

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-05