PHPackages                             yii1tech/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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. yii1tech/error-handler

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

yii1tech/error-handler
======================

Provides Enhanced Error Handler for Yii1 application

1.0.0(2y ago)15.8k↓34.8%BSD-3-ClausePHPPHP &gt;=7.2

Since Apr 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yii1tech/error-handler)[ Packagist](https://packagist.org/packages/yii1tech/error-handler)[ GitHub Sponsors](https://github.com/klimov-paul)[ Patreon](https://www.patreon.com/klimov_paul)[ RSS](/packages/yii1tech-error-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

 [ ![](https://avatars.githubusercontent.com/u/134691944) ](https://github.com/yii1tech)

Yii1 Enhanced Error Handler
===========================

[](#yii1-enhanced-error-handler)

This extension provides Enhanced Error Handler for Yii1 application.

For license information check the [LICENSE](LICENSE.md)-file.

[![Latest Stable Version](https://camo.githubusercontent.com/96f9e265b187c61e2257b9e212dbb40bf4886fa0117fa97645a666409fcb1ffc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79696931746563682f6572726f722d68616e646c65722e737667)](https://packagist.org/packages/yii1tech/error-handler)[![Total Downloads](https://camo.githubusercontent.com/15e2d2bcac2b996faaf8eec4ca88b65dfb3779fbc4b38ad177e5d864bd2570ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79696931746563682f6572726f722d68616e646c65722e737667)](https://packagist.org/packages/yii1tech/error-handler)[![Build Status](https://github.com/yii1tech/error-handler/workflows/build/badge.svg)](https://github.com/yii1tech/error-handler/actions)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist yii1tech/error-handler

```

or add

```
"yii1tech/error-handler": "*"
```

to the "require" section of your composer.json.

Usage
-----

[](#usage)

This extension provides Enhanced Error Handler for Yii1 application. Its main feature is conversion of the PHP errors into exceptions, so they may be processed via `try..catch` blocks.

> Note: in order for error to exception conversion to work, the error handler component should be added to the application "preload" section.

Application configuration example:

```
