11<p align =" center " >
22 <a href="https://github.com/yiisoft" target="_blank">
3- <img src="https://yiisoft.github.io/docs/images/yii_logo.svg" height="100px">
3+ <img src="https://yiisoft.github.io/docs/images/yii_logo.svg" height="100px" alt="Yii" >
44 </a>
55 <h1 align="center">Yii Error Handler</h1>
66 <br>
@@ -21,7 +21,7 @@ The package provides advanced error handling. The features are:
2121- Production and debug modes.
2222- Debug mode displays details, stacktrace, has dark and light themes and handy buttons to search for error without typing.
2323- Takes PHP settings into account.
24- - Handles out of memory errors, fatals, warnings, notices and exceptions.
24+ - Handles out of memory errors, fatals, warnings, notices and exceptions.
2525- Can use any PSR-3 compatible logger for error logging.
2626- Detects response format based on mime type of the request.
2727- Supports responding with HTML, plain text, JSON, XML and headers out of the box.
@@ -37,7 +37,7 @@ The package provides advanced error handling. The features are:
3737
3838## Installation
3939
40- The package could be installed with composer :
40+ The package could be installed with [ Composer ] ( https://getcomposer.org ) :
4141
4242``` shell
4343composer require yiisoft/error-handler
@@ -195,9 +195,6 @@ $response = $exceptionResponder->process($request, $handler);
195195In the application middleware stack ` Yiisoft\ErrorHandler\Middleware\ExceptionResponder ` must be placed before
196196` Yiisoft\ErrorHandler\Middleware\ErrorCatcher ` .
197197
198- For use in the [ Yii framework] ( https://www.yiiframework.com/ ) ,
199- see [ Yii guide to handling errors] ( https://github.com/yiisoft/docs/blob/master/guide/en/runtime/handling-errors.md ) .
200-
201198## Events
202199
203200- When ` ErrorCatcher ` catches an error it dispatches ` \Yiisoft\ErrorHandler\Event\ApplicationError ` event.
@@ -221,7 +218,6 @@ Code blocks in solution markdown support language syntax highlight:
221218
222219For example:
223220
224- ````
225221``` html
226222<html >
227223<body >
@@ -230,38 +226,14 @@ For example:
230226</body >
231227</html >
232228```
233- ````
234-
235- ## Testing
236-
237- ### Unit testing
238-
239- The package is tested with [ PHPUnit] ( https://phpunit.de/ ) . To run tests:
240-
241- ``` shell
242- ./vendor/bin/phpunit
243- ```
244-
245- ### Mutation testing
246-
247- The package tests are checked with [ Infection] ( https://infection.github.io/ ) mutation framework with
248- [ Infection Static Analysis Plugin] ( https://github.com/Roave/infection-static-analysis-plugin ) . To run it:
249-
250- ``` shell
251- ./vendor/bin/roave-infection-static-analysis-plugin
252- ```
253-
254- ### Static analysis
255229
256- The code is statically analyzed with [ Psalm ] ( https://psalm.dev/ ) . To run static analysis:
230+ ## Documentation
257231
258- ``` shell
259- ./vendor/bin/psalm
260- ```
232+ - [ Yii guide to handling errors] ( https://github.com/yiisoft/docs/blob/master/guide/en/runtime/handling-errors.md )
233+ - [ Internals] ( docs/internals.md )
261234
262- ## Credits
263-
264- The Yii Error Handler use code of [ Highlight.js] ( https://highlightjs.org/ ) by Ivan Sagalaev and other contributors.
235+ If you need help or have a question, the [ Yii Forum] ( https://forum.yiiframework.com/c/yii-3-0/63 ) is a good place for that.
236+ You may also check out other [ Yii Community Resources] ( https://www.yiiframework.com/community ) .
265237
266238## License
267239
@@ -270,6 +242,10 @@ Please see [`LICENSE`](./LICENSE.md) for more information.
270242
271243Maintained by [ Yii Software] ( https://www.yiiframework.com/ ) .
272244
245+ ## Credits
246+
247+ The Yii Error Handler use code of [ Highlight.js] ( https://highlightjs.org/ ) by Ivan Sagalaev and other contributors.
248+
273249## Support the project
274250
275251[ ![ Open Collective] ( https://img.shields.io/badge/Open%20Collective-sponsor-7eadf1?logo=open%20collective&logoColor=7eadf1&labelColor=555555 )] ( https://opencollective.com/yiisoft )
0 commit comments