PHPackages                             slick/error-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. slick/error-handler

ActiveLibrary

slick/error-handler
===================

PHP Error Handler module that captures and displays all throwable errors in a given format, making debugging easier and more efficient

v0.4.0(1y ago)01.3k↑33.3%1MITPHPPHP &gt;=8.2

Since Aug 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/slickframework/error-handler)[ Packagist](https://packagist.org/packages/slick/error-handler)[ RSS](/packages/slick-error-handler/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (7)Versions (4)Used By (1)

Slick error handler
===================

[](#slick-error-handler)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1ab4e7b9e0e5a9c4de085b0c8e509597fe13f7ea6394b40ad8d299ce64fb8d0a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c69636b2f6572726f722d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/slick/error-handler)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/b76ddb4ef18880a5a6de373bc9462e72dc7c87f77f97f3e105f74f816efdc172/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736c69636b6672616d65776f726b2f6572726f722d68616e646c65722f636f6e74696e756f75732d696e746567726174696f6e2e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/slickframework/error-handler/actions/workflows/continuous-integration.yml)[![Quality Score](https://camo.githubusercontent.com/67f8be280e011315e4a042bd7aec9972f86fc7957a6a113a3164168ff182e97e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736c69636b6672616d65776f726b2f6572726f722d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/slickframework/error-handler)[![Total Downloads](https://camo.githubusercontent.com/4a277f60c980da8b8b7cb2f7bddc05743d39c0c0aa7efd13f847575d39a3f156/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736c69636b2f6572726f722d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/slickframework/error-handler)

This custom PHP Error Handler is designed to intercept and manage all throwable errors, including exceptions and fatal errors providing a robust and user-friendly error handling experience. The module captures detailed error information and presents it within a well-structured template, offering clear and concise feedback to developers. This enhances debugging by displaying the error type, message, file, line number, and a stack trace, all within an aesthetically pleasing and easily navigable interface. This approach ensures a smooth user experience while simplifying error diagnosis and resolution for developers.

This package is compliant with PSR-2 code standards and PSR-4 autoload standards. It also applies the [semantic version 2.0.0](http://semver.org) specification.

Install
-------

[](#install)

Via Composer

```
$ composer require slick/error-handler
```

Usage
-----

[](#usage)

In you startup script add the following:

```
// index.php
