niletphp / error-handling
The NiletPHP error handling component.
Installs: 182
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/niletphp/error-handling
Requires
- php: >=7.0
This package is not auto-updated.
Last update: 2025-09-28 02:00:05 UTC
README
##Custom error handling
Registers custom error handler, which throws \Error when PHP emits E_WARNING or E_ERROR.
Requirements
PHP >= 7.0
Install
Composer
{ "require": { "niletphp/error-handling": ">=v1.0" } }
Examples
use Nilet\Components\ErrorHandling\ErrorHandler; $eh = new ErrorHandler(); // Registering the custom error handler $eh->handleErrors(); // Restore the previous event handler $eh->restoreErrorHandler();