Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

wilbur-yu/hyperf-whoops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hyperf Whoops

wilbur-oo/hyperf-whoops 是对 flip/whoops 的简单封装,用于渲染并显示更加清晰且利于阅读的异常及错误

安装

wilbur-oo/hyperf-whoops 是一个扩展组件,需要手动安装:

  • composer

composer require wilbur-oo/hyperf-whoops --dev

  • composer.json
{
  "require-dev":{
    "wilbur-oo/hyperf-whoops": "dev-master"
  }
}

使用

WilburOo\HyperFWhoops\WhoopeMiddleware 作为一个全局的Http中间件(config/autoload/middlewares.php)

    'http' => [
		\WilburOo\HyperFWhoops\WhoopeMiddleware::class
    ],

注意:因为Hyperf框架中间件执行顺序是按照数组的顺序,所以需要将\WilburOo\HyperFWhoops\WhoopeMiddleware::class放到第一位

About

Whoops Component for Hyperf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages