sorexalpinus/watchtower

Error & Exception handler for PHP 7+

Installs: 63

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/sorexalpinus/watchtower

0.2.1 2020-01-17 15:48 UTC

This package is auto-updated.

Last update: 2025-10-07 07:06:54 UTC


README

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