tina4stack/tina4php-debug
Composer 安装命令:
composer require tina4stack/tina4php-debug
包简介
Tina4 PHP Debug Functionality
README 文档
README
Tina4 Php Debug
A generic debugging module which can enhance your normal PHP project
Install the module using composer
composer require tina4stack/tina4php-debug
Some examples of what to expect
Normal error handling looks like this
Tina4 debug exception handling and errors will be published to the screen automatically for you.
You also get some nice console output
Setting this up in your project
In your code you need to set some constants to get this working.
<?php const TINA4_DOCUMENT_ROOT = __DIR__; const TINA4_DEBUG = true; require_once "vendor/autoload.php"; //Set the log level of what you want reported to console //Can be an array of the values as listed below \Tina4\Debug::$logLevel = [TINA4_LOG_DEBUG, TINA4_LOG_INFO]; //You can code here as per normal //If you want to output console messages use code like this \Tina4\Debug::message("Testing", TINA4_LOG_DEBUG); \Tina4\Debug::message("Testing", TINA4_LOG_WARNING); \Tina4\Debug::message("Testing", TINA4_LOG_ERROR); \Tina4\Debug::message("Testing", TINA4_LOG_INFO); \Tina4\Debug::message("Testing", TINA4_LOG_CRITICAL); //Render the debug echo \Tina4\DebugRender::render();
Log Levels
const TINA4_LOG_EMERGENCY = "emergency";
const TINA4_LOG_ALERT = "alert";
const TINA4_LOG_CRITICAL = "critical";
const TINA4_LOG_ERROR = "error";
const TINA4_LOG_WARNING = "warning";
const TINA4_LOG_NOTICE = "notice";
const TINA4_LOG_INFO = "info";
const TINA4_LOG_DEBUG = "debug";
const TINA4_LOG_ALL = "all";
Our Sponsors
Sponsored with 🩵 by Code Infinity
Supporting open source communities • Innovate • Code • Empower
tina4stack/tina4php-debug 适用场景与选型建议
tina4stack/tina4php-debug 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.51k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2021 年 06 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 tina4stack/tina4php-debug 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tina4stack/tina4php-debug 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 9.51k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-06-23


