yftzeng / wow-simple-error-handler
Simple Error Handler, caught fatal error message in error_log.
Installs: 567
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/yftzeng/wow-simple-error-handler
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-10-07 07:49:23 UTC
README
Simple Error Handler, caught fatal error message in error_log
Requirement
PHP 5.3+
Usage
Standalone WowLog library
include '../src/Wow/Exception/WowSimpleShutdownHandler.php';
ini_set('error_log','error.log');
new Wow\Exception\WowSimpleErrorHandler();
try{
echo $foo;
}
catch(Exception $e) {
var_dump($e);
}
Work with Composer
Edit composer.json
{
"require": {
"yftzeng/wow-simple-error-handler": "dev-master"
}
}
Update composer
$ php composer.phar update
Sample code
include 'vendor/autoload.php';
ini_set('error_log','error.log');
new Wow\Exception\WowSimpleErrorHandler();
try{
echo $foo;
}
catch(Exception $e) {
var_dump($e);
}
License
the MIT License