sincco / debug
PHP调试和日志记录的简单类
1.0.1
2016-11-23 20:06 UTC
Requires
- php: ^5.3.3 || ^7.0
This package is not auto-updated.
Last update: 2024-09-14 19:20:22 UTC
README
PHP调试和日志记录的简单类
##安装
要将此包添加为项目依赖项,只需在项目的 composer.json 文件中添加依赖项。以下是一个仅定义对 Debug 依赖的最小 composer.json 文件示例:
{ "require": { "sincco/debug": "dev-master" } }
##使用
记录任何消息/变量/数据。
<?php Debug::log( 'message', $var1, $var2, ... ); // log as much data as you want Debug::dump( 'message', $var1, $var2, ... ); // log and exit
使用并显示chrono。
<?php Debug::chrono(); // set the timer Debug::chrono('your message'); // display your message & time elapsed since last chrono call Debug::chrono(true); // display a table with all messages & times
许可证声明
此源文件受开放软件许可证(OSL 3.0)的约束,可通过以下URL在互联网上获取:https://open-source.org.cn/licenses/osl-3.0.php
编码愉快!