Download the PHP package jinnguyen/puja-error without Composer
On this page you can find all versions of the php package jinnguyen/puja-error. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jinnguyen/puja-error
More information about jinnguyen/puja-error
Files in jinnguyen/puja-error
Download jinnguyen/puja-error
More information about jinnguyen/puja-error
Files in jinnguyen/puja-error
Vendor jinnguyen
Package puja-error
Short Description Puja-Error are the handler layers, that handle all fatal exceptions/errors ( include fatal errors) from PHP application. Support callback function
License Apache License 2.0
Package puja-error
Short Description Puja-Error are the handler layers, that handle all fatal exceptions/errors ( include fatal errors) from PHP application. Support callback function
License Apache License 2.0
Please rate this library. Is it a good library?
Informations about the package puja-error
puja-error
Puja-Error are the handler layers, that handle all errors/exceptions for PHP application.
Install
composer require jinnguyen/puja-error
Usage
include '/path/to/vendor/autoload.php'; use Puja\Error\ErrorManager;
Examples
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
All versions of puja-error with dependencies
PHP Build Version
Package Version
Requires
jinnguyen/puja-entity Version
^1
The package jinnguyen/puja-error contains the following files
Loading the files please wait ....