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.
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
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2023-04-20