2017 © Pedro Peláez
 

library failurehandling

An error and exception handling library for PHP 5.3+

image

niels-nijens/failurehandling

An error and exception handling library for PHP 5.3+

  • Tuesday, November 10, 2015
  • by niels-nijens
  • Repository
  • 1 Watchers
  • 2 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 6 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

FailureHandling

An error and exception handling library for PHP 5.3+, (*1)

Build Status Coverage Status SensioLabsInsight Latest Stable Version, (*2)

Installation using Composer

Run the following command to add the package to your composer.json:, (*3)

composer require niels-nijens/failurehandling

This library also requires a PSR-3 compatible logger like niels-nijens/Logging or Monolog for the actual logging of errors and exceptions., (*4)

Usage

To activate handling of errors and exceptions, see the following example code., (*5)

use Nijens\FailureHandling\FailureCatcher;
use Nijens\FailureHandling\Handlers\DefaultFailureHandler;
use Nijens\Logging\Logger; // Not included in this library

$logger = new Logger(); // Not included in this library

$failureHandler = new DefaultFailureHandler();
$failureHandler->setLogger($logger);

FailureCatcher::start($failureHandler);

About

This is one of the AtomicPHP library series trying to achieve ultimate flexibility for PHP developers through separation of concerns., (*6)

Versioning

FailureHandling uses Semantic Versioning 2 as guideline for new versions., (*7)

License

FailureHandling is licensed under the MIT License - see the LICENSE file for details., (*8)

Author

Niels Nijens - https://github.com/niels-nijens/, (*9)

Acknowledgements

This library is inspired by an idea about error and exception handling of Giso Stallenberg., (*10)

The Versions

10/11 2015

dev-master

9999999-dev https://github.com/niels-nijens/FailureHandling

An error and exception handling library for PHP 5.3+

  Sources   Download

MIT

The Requires

 

The Development Requires

logging error exceptions failurehandling errorhandling

29/01 2014

2.0.0

2.0.0.0 https://github.com/niels-nijens/FailureHandling

An error and exception handling library for PHP 5.3+

  Sources   Download

MIT

The Requires

 

The Development Requires

logging error exceptions failurehandling errorhandling

16/09 2013

1.0.0

1.0.0.0 https://github.com/AtomicPHP/FailureHandling

An open-source library for handling and logging failures / errors in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

logging error exceptions failurehandling