qlimix / http-exception-logger-middleware
使用 PSR-15 中间件记录 http 请求中的异常
1.0.0
2019-06-23 11:10 UTC
Requires
- php: >=7.2
- psr/http-server-middleware: ^1.0
- qlimix/http: ^1.0
- qlimix/logging-exception-handler: ^1.0
Requires (Dev)
- qlimix/code-standard: ^1.0
This package is auto-updated.
Last update: 2024-09-23 23:30:53 UTC
README
使用 PSR-15 中间件记录 http 请求中的异常。
安装
使用 Composer
$ composer require qlimix/http-exception-logger-middleware
用法
<?php use Qlimix\HttpMiddleware\ExceptionLoggerMiddleware; $logger = new FooBarExceptionLogger(); $loggerMiddleware = new ExceptionLoggerMiddleware($logger);
测试
要本地运行所有单元测试,请使用 PHPUnit
$ vendor/bin/phpunit
质量
为了确保代码质量,请运行 grumphp,它将运行所有工具
$ vendor/bin/grumphp run
贡献
请参阅 CONTRIBUTING 以获取详细信息。