franzl/whoops-middleware
最新稳定版本:2.0.0
Composer 安装命令:
composer require franzl/whoops-middleware
包简介
PSR-15 compatible middleware for Whoops, the pretty error handler
README 文档
README
A PSR-15 compatible middleware for Whoops, the fantastic pretty error handler for PHP.
Installation
You can install the library using Composer:
composer require franzl/whoops-middleware
Usage
Assuming you are using a PSR-15 compatible middleware dispatcher (such as zend-stratigility, Relay, or broker), all you need to do is add the middleware class to your pipeline / broker / dispatcher ...
This might look as follows:
Stratigility
$pipe->pipe(new \Franzl\Middleware\Whoops\WhoopsMiddleware)
Relay
$queue = []; // ... $queue[] = new \Franzl\Middleware\Whoops\WhoopsMiddleware; $relay = new Relay($queue);
broker
$broker->always(\Franzl\Middleware\Whoops\WhoopsMiddleware::class)
统计信息
- 总下载量: 1.85M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 29
- 点击次数: 1
- 依赖项目数: 20
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04