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 All time: 4,841 This week: 660Up
Version License PHP version Categories
error-exception-hand 2.5GNU General Publi...5.5PHP 5, Debug, Language, Traits


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: 275 Down19 in India India Down
Innovation award
Innovation award
Nominee: 3x

Winner: 1x


use Define\Utilities\ErrorExceptionHandler;


// create some error or exception.

  • Screenshot
  Files folder image Files  
File Role Description
Accessible without login Plain text file Conf. Settings
Accessible without login Plain text file 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 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 Doc. Documentation
Plain text file SingletonTrait.php Class Singleton trait for singleton classes

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,841
This week:660Up
User Ratings User Comments (1)
 All time
Excellent coding style and very useful.
8 years ago (Gerry Danen)