PHP code example of sorexalpinus / watchtower
1. Go to this page and download the library: Download sorexalpinus/watchtower library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sorexalpinus / watchtower example snippets
use WatchTower\WatchTower;
use WatchTower\Handlers\WhoopsMinibox;
use WatchTower\Outputs\Browser;
$wt = WatchTower::getInstance();
$wt->watchFor(E_WARNING | E_NOTICE)
->thenCreate(WhoopsMinibox::create())
->andSendTo(Browser::create());
$wt->watch();