library puja-error
Puja-Error are the handler layers, that handle all fatal exceptions/errors ( include fatal errors) from PHP application. Support callback function
jinnguyen/puja-error
Puja-Error are the handler layers, that handle all fatal exceptions/errors ( include fatal errors) from PHP application. Support callback function
- Monday, December 5, 2016
- by jinnguyen
- Repository
- 1 Watchers
- 0 Stars
- 19 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
puja-error
Puja-Error are the handler layers, that handle all errors/exceptions for PHP application., (*1)
Install, (*2)
composer require jinnguyen/puja-error
Usage, (*3)
include '/path/to/vendor/autoload.php';
use Puja\Error\ErrorManager;
Examples, (*4)
class A
{
public function b(array $erroMessage = array())
{
print_r($erroMessage); // viewsource to see how this function work
}
}
use Puja\Error\ErrorManager;
new ErrorManager(array(
'enabled' => true, // toggle on/off Error Manager
'debug' => true, // toggle on/off mode DEBUG
'error_level' => E_ALL, // same with error_reporting()
'callback_fn' => array(new A(), 'b')) // callback function, will call after application get error (you can do some stuff like: log errors, roll back db transaction, ...)
);
$a = new A();
$a->c();
Result
, (*5)
dev-master
9999999-dev
Puja-Error are the handler layers, that handle all fatal exceptions/errors ( include fatal errors) from PHP application. Support callback function
Sources
Download
Apache License 2.0
The Requires
by
Jin Nguyen
error
puja
puja error
v1.0.0
1.0.0.0
Puja-Error are the handler layers, that handle all fatal exceptions/errors ( include fatal errors) from PHP application. Support callback function
Sources
Download
Apache License 2.0
The Requires
by
Jin Nguyen
error
puja
puja error