noelclick/php-frontend-debugger 问题修复 & 功能扩展

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

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

noelclick/php-frontend-debugger

最新稳定版本:v1.0.0

Composer 安装命令:

composer require noelclick/php-frontend-debugger

包简介

Lightweight frontend debugger and exception handler for PHP.

README 文档

README

PHP Frontend Debugger & Exception Handler

Lightweight frontend debugger and exception handler for PHP.

Features

  • Debug/Print any variable to the frontend debugger box.
  • Show formatted stacktrace of exceptions.

Installation & Usage

Composer installation:

composer req "noelclick/php-frontend-debugger"

Set exception handler

// Composer autoloader
require "./vendor/autoload.php"; 

\NoelClick\PhpFrontendDebugger\ExceptionHandler::getInstance()
    ->setCondition(true) // Optionally, you can set conditions with the `setCondition()` method.
    ->handle();

Print variable (Will be printed if an error occurs)

// Composer autoloader
require "./vendor/autoload.php"; 

$fooBar = ["foo", "bar"];

\NoelClick\PhpFrontendDebugger\FrontendDebugger::getInstance()
        ->insert($fooBar, "FooBar"); // Optionally, you can also specify a title.

Changelog

All notable changes to this project will be documented in the CHANGELOG.md file.

Copyright

© Copyright 2022 by Noel Kayabasli

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-only
  • 更新时间: 2022-10-18