noelclick / php-frontend-debugger
Lightweight frontend debugger and exception handler for PHP.
v1.0.0
2022-10-18 20:29 UTC
Requires
- php: ^8.0
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