2017 © Pedro Peláez
 

library errorhandler

Error Handler Component for errors handling.

image

force/errorhandler

Error Handler Component for errors handling.

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

The README.md

Error Handler Component

version MIT License, (*1)

preview, (*2)

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

Installation

composer require flextype-components/errorhandler

Usage

use Flextype\Component\ErrorHandler\ErrorHandler;

Set error reporting level, (*4)

$show_errors = true;

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

Set LOGS_PATH constant, (*5)

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

Set Error handler, (*6)

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, (*7)

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

 

error errorhandler force

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