Self-hosted real-time debugging dashboard for PHP.
This is the server and dashboard component of DebugPHP.
- PHP 8.1+
- Composer
git clone https://github.com/CallMeLeon167/debugphp-server.git
cd debugphp-server
composer installThen open http://localhost:8080/setup/ in your browser and follow the setup wizard.
Install the client package in your PHP application:
composer require callmeleon167/debugphp --devThen initialize it with your session token from the dashboard:
use DebugPHP\Debug;
Debug::init('your-session-token', [
'host' => 'http://localhost:8080',
]);
Debug::send('Hello DebugPHP!');
Debug::send($user, 'User')->color('blue');See the DebugPHP client repository for the full API documentation.
If you need to reconfigure the server after initial setup, set ALLOW_SETUP to true in setup/index.php, run the wizard, then set it back to false.
Please read CONTRIBUTING.md before opening a pull request.
MIT — see LICENSE for details.
- DebugPHP Package: github.com/CallMeLeon167/debugphp
- Website: debugphp.dev
- Documentation: debugphp.dev/docs