toxygene/pale

PHP error to exception trap library

Maintainers

Details

github.com/toxygene/pale

Source

Issues

Installs: 17

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/toxygene/pale

1.0.0 2017-09-10 15:50 UTC

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);
}