szemul/debug-data-creator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

szemul/debug-data-creator

最新稳定版本:1.1.1

Composer 安装命令:

composer require szemul/debug-data-creator

包简介

Debug file creating error handler

README 文档

README

CI pipeline codecov

Error handler to create debug/trace files to aid in debugging.

Data categories

  • Error message - A description of the error or exception
  • Exception - If the debug is for an exception or other throwable, the dump of the throwable itself
  • Back trace - The backtrace for the error. In case of an exception or a throwable the exception category contains this
  • Server - The contents of the $_SERVER superglobal
  • Get - The contents of the $_GET superglobal
  • Post - The contents of the $_POST superglobal
  • Cookie - The contents of the $_COOKIE superglobal
  • Env - The contents of the $_ENV superglobal

All of the above categories are dumped using the var_dump() PHP function except for the error message.

Config

Each section above can be enabled or disabled. To avoid potential security issues the following categories are disabled by default:

  • Server - This may contain environment variables and sensitive configuration data.
  • Post - This may contain credentials in case of a login for example.
  • Cookie - This may contain session cookies for example.
  • Env - This may contain environment variables and sensitive configuration data.

When enabling any of these, it's strongly recommended to use sanitizers to sanitize the categories

Input sanitization

A sanitizer will process the individual categories and remove or mask any sensitive values.

Object sanitization

Any sanitizer may process any object it knows, but an easier way to handle object sanitization is to implement the __debugInfo magic method in them.

统计信息

  • 总下载量: 2.27k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固