定制 php-packages/dumpy 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

php-packages/dumpy

最新稳定版本:1.0.2

Composer 安装命令:

composer require php-packages/dumpy

包简介

Better var_dump for PHP.

README 文档

README

Better var_dump for PHP.

Features

  • pretty configurable (one-configuration-per-instance)
  • fully tested (PHPUnit as a test runner + Essence as BDD assertion framework)
  • documented (comments in source code + this readme file)
  • decent source code, unlike many solutions I've seen previously

Installation

composer require php-packages/dumpy

Usage

It's pretty darn simple.

Configuration

$dumpy = new PhpPackages\Dumpy\Dumpy;
$dumpy->configure("optionName", "optionValue");
$dumpy->getConfigOption("optionName"); # => "optionValue"
Option name Description Possible values
str_max_length the maximum string length any positive integer
bool_lowercase either FALSE or false either false or true
null_lowercase either NULL or null either false or true
round_double whether to round() doubles to given decimal point false or any positive integer
replace_newline whether to replace PHP_EOL with \\n either false or true
array_max_elements a treshold - all odd elements with be replaced with a single ... any positive integer
array_indenting an indentation sequence any string (e.g., )
object_limited_info whether to display parent classes, interfaces, traits either false or true

Dumping

$dumpy = new PhpPackages\Dumpy\Dumpy;
// Configure Dumpy...
$stringRepresentation = $dumpy->dump($anyValue);

License

The MIT license (MIT).

统计信息

  • 总下载量: 202
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固