Skip to content

NoelClick/php-frontend-debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Lightweight frontend debugger and exception handler for PHP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published