webgraphe / phollow
Live PHP Script Monitoring
Requires
- php: >=5.6
- ext-json: *
- ext-posix: *
- cboden/ratchet: ^0.4.1
- nikic/fast-route: ^1.3.0
- react/http: ^0.8.3
Requires (Dev)
- phpunit/phpunit: 5.7.*
Suggests
- ext-pcntl: To support gracefully shutting down the server using process control signals
README
Phollow (pronounced \ˈfälō\) is a lightweight PHP script monitoring utility for developers running a server in the background to track your application's performance and errors.
This library is not ready for production use and should ONLY be used for debugging purposes in a restricted development environment.
It relies on Unix sockets and is therefore incompatible natively on Windows machines.
Installation
Put simply, the installation process consists in adding a development dependency to your project's Composer and registering the error handler.
Your bare bones installation goes like this:
Add dependency on your project
composer require webgraphe/phollow --dev
Register the error handler
As early as possible in the execution process of your PHP projects:
<?php use Webgraphe\Phollow\ErrorHandler; ErrorHandler::create()->register();
Launch the server
vendor/bin/phollow run --colors
Monitor your PHP scripts in a browser
Once server runs, hit the URL listed for the HTTP server. Run a PHP script that registers the error handler and phollow the action 😲