maxfang / easy-print
a simple library for print
0.9.0
2022-01-16 10:49 UTC
This package is auto-updated.
Last update: 2024-09-07 08:55:15 UTC
README
一个极简的打印输出数据的工具库,方便日常开发调试。
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:
- File bug reports using the issue.
- Answer questions or fix bugs on the issue.
- Contribute new features or update the wiki.
License
MIT