sorexalpinus / watchtower

Slim error & exception handler for PHP 7+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WatchTower

Slim error & exception handler for PHP 7+

Installation

Install the latest version with

$ composer require sorexalpinus/watchtower

Basic Usage

<?php
    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();

Author

Juraj Hlatky (sorexalpinus)

License

WatchTower is licensed under the MIT License - see the LICENSE file for details

Special thanks

This library uses modified Whoops (filp/whoops) package

About

Slim error & exception handler for PHP 7+

License:MIT License


Languages

Language:PHP 96.7%Language:JavaScript 1.8%Language:CSS 1.0%Language:HTML 0.5%