toxygene / pale
PHP error to exception trap library
Installs: 17
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/toxygene/pale
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ^6.3
This package is not auto-updated.
Last update: 2025-10-11 17:53:49 UTC
README
Pale is a simple PHP >=5.6 library that allows a developer to easily convert errors to exceptions without having to worry about the details of changing and restoring error handlers.
Usage
use function Pale\run; try { run(function() { trigger_error("this will become an exception"); }); } catch(ErrorException $e) { var_dump($e); }