项目作者: sorexalpinus

项目描述 :
Slim error & exception handler for PHP 7+
高级语言: PHP
项目地址: git://github.com/sorexalpinus/watchtower.git
创建时间: 2019-11-16T23:55:23Z
项目社区:https://github.com/sorexalpinus/watchtower

开源协议:MIT License

下载


WatchTower

Slim error & exception handler for PHP 7+

Installation

Install the latest version with

  1. $ composer require sorexalpinus/watchtower

Basic Usage

  1. <?php
  2. use WatchTower\WatchTower;
  3. use WatchTower\Handlers\WhoopsMinibox;
  4. use WatchTower\Outputs\Browser;
  5. $wt = WatchTower::getInstance();
  6. $wt->watchFor(E_WARNING | E_NOTICE)
  7. ->thenCreate(WhoopsMinibox::create())
  8. ->andSendTo(Browser::create());
  9. $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