2017 © Pedro Peláez
 

library errors

Error Handling Library

image

arabcoders/errors

Error Handling Library

  • Saturday, April 15, 2017
  • by arabcoders
  • Repository
  • 1 Watchers
  • 0 Stars
  • 73 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 3 % Grown

The README.md

Error Handling Library.

Build Status, (*1)

Error Handling Library, This library can handle logging and displaying of the errors, you can also register listener for special error cases such as if you want to handle specific error/exception in different way, or want to extend/replace the Structured data, It can log to multiple services defined by the user, it can also handle different output streams, there is also Policy class to handle Different requirement of logging/displaying/exiting of the application., (*2)

Im working to support Psr3 there is minimal support right now with Logger Class and PSR3 abstract class, we may have to refactor major parts to be compatiable with it., (*3)

Install

Via Composer, (*4)

$ composer require arabcoders/errors

Usage Example.

<?php

require __DIR__ . '/../../autoload.php';

$error = new \arabcoders\errors\Error();

$error->addLogger( 'default', new \arabcoders\errors\Logging\Syslog() )
      ->setOutput( new \arabcoders\errors\Output\HTML() );

//-- or you can use (bool)true in constructor to init default logger/output like
$error = new \arabcoders\errors\Error(true);

trigger_error( 'test Warning', \E_USER_WARNING);

To run Tests.

cd vendor/arabcoders/errors;
composer update
./vendor/bin/phpunit tests/

The Versions

15/04 2017

dev-master

9999999-dev https://www.abdulmohsen.me

Error Handling Library

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-json *

 

The Development Requires

logging errors exception exceptions

15/04 2017

v1.6.0

1.6.0.0 https://www.abdulmohsen.me

Error Handling Library

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-json *

 

The Development Requires

logging errors exception exceptions

19/02 2017

v1.5.1

1.5.1.0 https://www.abdulmohsen.me

Error Handling Library

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-json *

 

The Development Requires

logging errors exception exceptions

12/02 2017

v1.5.0

1.5.0.0 https://www.abdulmohsen.me

Error Handling Library

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-json *

 

The Development Requires

logging errors exception exceptions

06/02 2017

v1.0.0

1.0.0.0 https://www.abdulmohsen.me

Error Handling Library

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-json *

 

The Development Requires

logging errors exception exceptions

01/02 2017

v0.0.6

0.0.6.0 https://www.abdulmohsen.me

Error Handling Library

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-json *

 

The Development Requires

logging errors exception exceptions

31/01 2017

v0.0.5

0.0.5.0 https://www.abdulmohsen.me

Error Handling Library

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-json *

 

The Development Requires

logging errors exception exceptions

31/01 2017

v0.0.4

0.0.4.0 https://www.abdulmohsen.me

Error Handling Library

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-json *

 

The Development Requires

logging errors exception exceptions

31/01 2017

v0.0.3

0.0.3.0 https://www.abdulmohsen.me

Error Handling Library

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-json *

 

The Development Requires

logging errors exception exceptions

31/01 2017

v0.0.2

0.0.2.0 https://www.abdulmohsen.me

Error Handling Library

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-json *

 

logging errors exception exceptions

29/01 2017

v0.0.1

0.0.1.0 https://www.abdulmohsen.me

Error Handling Library

  Sources   Download

MIT

The Requires

  • php >=7.0

 

logging errors exception exceptions