PHPackages                             struzik-vladislav/php-error-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. struzik-vladislav/php-error-handler

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

struzik-vladislav/php-error-handler
===================================

Handling PHP errors (Notice, Warning, etc.)

v1.0.2(8y ago)013.8k↓28.1%1MITPHPPHP &gt;=5.6

Since May 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/struzik-vladislav/php-error-handler)[ Packagist](https://packagist.org/packages/struzik-vladislav/php-error-handler)[ RSS](/packages/struzik-vladislav-php-error-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (1)

PHP Error Handler [![Travis](https://camo.githubusercontent.com/c79a502147fbdf24f3af0666ce5e07f9809752492f359306c4339520e81d3ec0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f737472757a696b2d766c616469736c61762f7068702d6572726f722d68616e646c65722e737667)](https://travis-ci.org/struzik-vladislav/php-error-handler)
========================================================================================================================================================================================================================================================================================================================================

[](#php-error-handler-)

Handling PHP errors in various processors.

Types of errors that can be handled according to [set\_error\_handler](http://php.net/manual/en/function.set-error-handler.php):

- E\_STRICT
- E\_RECOVERABLE\_ERROR
- E\_NOTICE
- E\_WARNING
- E\_DEPRECATED
- E\_USER\_ERROR
- E\_USER\_NOTICE
- E\_USER\_WARNING
- E\_USER\_DEPRECATED

Processors
----------

[](#processors)

### ReturnFalseProcessor

[](#returnfalseprocessor)

The processor for enabling native PHP handler after custom.

### LoggerProcessor

[](#loggerprocessor)

The processor for writing to the PSR-3 compatible logger like [Monolog](https://github.com/Seldaek/monolog).

### IntoExceptionProcessor

[](#intoexceptionprocessor)

The processor for converting errors to exceptions. The basic type of throwing exception is `Struzik\ErrorHandler\Exception\ErrorException`.

Usage
-----

[](#usage)

```
