/easy-print

一个极简的打印输出数据的工具库,方便日常开发调试。

Primary LanguagePHP

easy-print

一个极简的打印输出数据的工具库,方便日常开发调试。

Installing

$ composer require maxfang/easy-print

Usage

# 使用 echo 简单打印
$str = 'hello world';
e($str);

# 使用 echo 简单打印,并调用 die 终止
$str = 'hello world';
ed($str);

# 使用格式化输出打印,便于浏览器中查看
$data = [
    'code' => '200',
    'msg' => 'success',
    'data' => [
        'id' => '369',
        'name' => 'boz',
    ]
];
p($data);

# 使用格式化输出打印,便于浏览器中查看,并调用 die 终止
$data = [
    'code' => '200',
    'msg' => 'success',
    'data' => [
        'id' => '369',
        'name' => 'boz',
    ]
];
pd($data);

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue.
  2. Answer questions or fix bugs on the issue.
  3. Contribute new features or update the wiki.

License

MIT