2017 © Pedro Peláez
 

library errorhandler

Error Handler Component for errors handling.

image

flextype-components/errorhandler

Error Handler Component for errors handling.

  • Sunday, April 29, 2018
  • by Awilum
  • Repository
  • 1 Watchers
  • 0 Stars
  • 85 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 63 % Grown

The README.md

Error Handler Component

versionMIT License, (*1)

Error Handler Component for errors handling., (*2)

Installation

composer require flextype-components/errorhandler

Usage

use Flextype\Component\ErrorHandler\ErrorHandler;

Set error reporting level, (*3)

$show_errors = true;

if ($show_errors) {
    define('DEVELOPMENT', true);
    error_reporting(-1);
} else {
    define('DEVELOPMENT', false);
    error_reporting(0);
}

Set LOGS_PATH constant, (*4)

define('LOGS_PATH', 'path/to/logs');

Set Error handler, (*5)

set_error_handler('Flextype\Component\ErrorHandler\ErrorHandler::error');
register_shutdown_function('Flextype\Component\ErrorHandler\ErrorHandler::fatal');
set_exception_handler('Flextype\Component\ErrorHandler\ErrorHandler::exception');

License

See LICENSE, (*6)

The Versions

29/04 2018

dev-master

9999999-dev https://github.com/flextype-components/errorhandler

Error Handler Component for errors handling.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

errorhandler

29/04 2018

v1.0.4

1.0.4.0 https://github.com/flextype-components/errorhandler

Error Handler Component for errors handling.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

errorhandler

10/03 2018

v1.0.3

1.0.3.0 https://github.com/force-components/ErrorHandler

Error handler class

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

error errorhandler force

10/03 2018

v1.0.2

1.0.2.0 https://github.com/force-components/ErrorHandler

Error handler class

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

error errorhandler force

10/03 2018

v1.0.0

1.0.0.0 https://github.com/force-components/ErrorHandler/issues

Error handler class

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

error errorhandler force

10/03 2018

v1.0.1

1.0.1.0 https://github.com/force-components/ErrorHandler/issues

Error handler class

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

error errorhandler force