PHPackages                             kiss-php/errors - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kiss-php/errors

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kiss-php/errors
===============

Kiss errors manager for php.

1.0.1(1mo ago)02↓88.9%MITPHPPHP &gt;=7.4CI passing

Since May 30Pushed 1mo agoCompare

[ Source](https://github.com/kiss-php/errors)[ Packagist](https://packagist.org/packages/kiss-php/errors)[ RSS](/packages/kiss-php-errors/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

KISS-PHP Errors
===============

[](#kiss-php-errors)

Kiss errors manager for PHP.

Install
-------

[](#install)

Requires PHP 7.2 or newer.

```
composer require kiss-php/errors
```

Flow
----

[](#flow)

Callbacks do not decide if the program continues.

KISS-PHP Errors follows PHP behavior:

- Warnings, notices, deprecations, and strict errors continue after the callback.
- Errors, parse errors, recoverable errors, and exceptions stop after the callback.
- If there is no callback for an error type, PHP handles it with its default behavior.

Every callback receives an `ErrorInfo` object. You can also receive `$message`, `$file`, `$line`, and `$level`.

ALL
---

[](#all)

`ALL::callback` registers the same callback for every error type.

It receives the error type first.

```
