iamjohndev/var-print-prettifier 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

iamjohndev/var-print-prettifier

Composer 安装命令:

composer require iamjohndev/var-print-prettifier

包简介

A PHP class for prettifying print_r and var_dump output

README 文档

README

A PHP package that provides a simple and easy-to-use function to pretty print variables for debugging purposes.

Printifier

Installation

This package can be easily installed using Composer. Run the following command to add it to your project's dependencies:

composer require iamjohndev/var-print-prettifier

Usage

use iamjohndev\VarPrintPrettifier;

$data = [
    'name' => 'John Doe',
    'age' => 30,
    'email' => 'johndoe@example.com',
    'address' => [
        'street' => '123 Main St',
        'city' => 'Anytown',
        'state' => 'CA',
        'zip' => '12345'
    ]
];

VarPrintifier::var_dump($data);
VarPrintifier::print_r($data);

The dump method pretty prints the given variable in a human-readable format. It can be used to debug complex data structures and objects.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-only
  • 更新时间: 2023-04-20