PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 66%Total: 667 This week: 1All time: 4,840 This week: 560Up
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 is available for providing paid consulting. Contact Nitesh Apte .
Classes: 17 packages by
Country: India India
Age: 40
All time rank: 1337 in India India
Week rank: 106 Up8 in India India Down
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  
  • Screenshot
  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
 90%
Total:667
This week:1
All time:4,840
This week:560Up
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