Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fx-max/easy-print
一个极简的打印输出数据的工具库,方便日常开发调试。
https://github.com/fx-max/easy-print
dump log php
Last synced: 6 days ago
JSON representation
一个极简的打印输出数据的工具库,方便日常开发调试。
- Host: GitHub
- URL: https://github.com/fx-max/easy-print
- Owner: FX-Max
- Created: 2022-01-16T10:04:44.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-07T03:27:35.000Z (almost 3 years ago)
- Last Synced: 2024-04-14T06:10:55.502Z (7 months ago)
- Topics: dump, log, php
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# easy-print
一个极简的打印输出数据的工具库,方便日常开发调试。
## Installing
```shell
$ composer require maxfang/easy-print
```## Usage
```php
# 使用 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](https://github.com/FX-Max/easy-print/issues).
2. Answer questions or fix bugs on the [issue](https://github.com/FX-Max/easy-print/issues).
3. Contribute new features or update the wiki.## License
MIT