PHP Classes

PHP Error and Exception Handling class: Log PHP exceptions, common and fatal errors

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 66%Total: 667 All time: 4,842 This week: 660Up
Version License PHP version Categories
error-exception-hand 2.5GNU General Publi...5.5PHP 5, Debug, Language, Traits
Description 

Author

This package can log PHP exceptions, common and fatal errors.

It registers an error handler, an exception handler and a shutdown function to catch fatal errors.

When an error is handled, it can either send email, log the error information to a file or display in a Web page.

It can also customize the messages to translate errors and exception codes.

Innovation Award
PHP Programming Innovation award nominee
December 2015
Number 2


Prize: PhpStorm IDE personal permanent license
Tracking PHP errors is fundamental to monitor the stability of a system and detect any bugs that cause problems in production environments.

This class can track not only common errors, but also exceptions and fatal errors that make PHP scripts exit.

It allows assigning special codes to non-standard errors and exceptions, so they can be logged using human readable messages that help understanding and fixing the problems faster.

Manuel Lemos
Picture of Nitesh Apte
  Performance   Level  
Name: Nitesh Apte <contact>
Classes: 18 packages by
Country: India India
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

Example

<?php
use Define\Utilities\ErrorExceptionHandler;
define("DIRECT_ACCESS", TRUE);

ErrorExceptionHandler::getInstance();

// create some error or exception.


Screenshots (1)  
  • Screenshot
  Files folder image Files (11)  
File Role Description
Accessible without login Plain text file define.inc Conf. Settings
Accessible without login Plain text file ErrorCodes.inc Conf. Contains error codes
Plain text file ErrorExceptionHandler.php Class Handles and logs errors and exceptions
Accessible without login Plain text file example.php Example How to use
Accessible without login Plain text file ExceptionCodes.inc Conf. Contains custom exception codes
Plain text file FrameworkException.php Class Custom exception class
Plain text file IUtilities.php Class This is the type for the utilities classes of MVC framework.
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Plain text file SingletonTrait.php Class Singleton trait for singleton classes

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 90%
Total:667
This week:0
All time:4,842
This week:660Up
User Ratings User Comments (1)
 All time
Utility:96%StarStarStarStarStar
Consistency:96%StarStarStarStarStar
Documentation:-
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:538
 
Excellent coding style and very useful.
8 years ago (Gerry Danen)
67%StarStarStarStar