Skip to content

CallMeLeon167/debugphp-server

Repository files navigation

DebugPHP Server

Self-hosted real-time debugging dashboard for PHP.

This is the server and dashboard component of DebugPHP.

License: MIT PHP Version PHPStan


Requirements

  • PHP 8.1+
  • Composer

Installation

git clone https://github.com/CallMeLeon167/debugphp-server.git
cd debugphp-server
composer install

Then open http://localhost:8080/setup/ in your browser and follow the setup wizard.


Connecting your PHP app

Install the client package in your PHP application:

composer require callmeleon167/debugphp --dev

Then 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.


Re-running the setup

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.


Contributing

Please read CONTRIBUTING.md before opening a pull request.


License

MIT — see LICENSE for details.


Links

About

Self-hosted server for DebugPHP — receives debug entries from your PHP app and streams them live to the browser dashboard via SSE. Includes a setup wizard, REST API, and real-time toolbar metrics. Requires PHP 8.1+ and MySQL/MariaDB.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors