PHPackages                             nkovacs/yii-whoops - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. nkovacs/yii-whoops

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

nkovacs/yii-whoops
==================

Whoops integration class for Yii Framework 1.1

v1.3.0(11y ago)030MITPHP

Since May 12Pushed 11y ago1 watchersCompare

[ Source](https://github.com/nkovacs/yii-whoops)[ Packagist](https://packagist.org/packages/nkovacs/yii-whoops)[ RSS](/packages/nkovacs-yii-whoops/feed)WikiDiscussions master Synced yesterday

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

Yii Error Handler with Whoops
=============================

[](#yii-error-handler-with-whoops)

Integrates the Whoops library into Yii 1.1.

This error handler replaces the built-in exception views with Whoops. Your error action (or Yii's built-in error views, if errorAction is not set) is used if your application is not in debug mode (i.e. `YII_DEBUG` is false), or the exception is a `CHttpException`.

Usage
-----

[](#usage)

1. Install it:

    - Using [Composer](http://getcomposer.org/) (it will automatically install Whoops main libraries as well):

    ```
    composer require igorsantos07/yii-whoops:1
    composer install
    ```

    - Or [downloading](https://github.com/nkovacs/yii-whoops/archive/master.zip) and unpacking it in your `extensions` folder.
2. If you're using Composer, I strongly recomend you create a `vendor` alias if you haven't yet. Add this to the beginning of your `config/main.php`:

    ```
    Yii::setPathOfAlias('vendor', __DIR__.'/../../vendor');
    ```
3. Replace your `errorHandler` entry at `config/main.php` with the error handler class. Example:

    ```
    'errorHandler' => ['class' => 'vendor.nkovacs.yii-whoops.WhoopsErrorHandler']
    ```

    If you're using Composer's autoloader, you can simply use `'WhoopsErrorHandler'`. You must require 'vendor/autoload.php' in your entry scripts (index.php, yiic.php etc.) for this to work.
4. If you're using some custom LogRoute that binds to the application's end, you can disable it using the component's `disabledLogRoutes` property. Just set it to an array containing all the classnames (not aliases!) of each route you want disabled whenever Whoops is launched. By default it disables the famous [Yii Debug Toolbar](http://github.com/malyshev/yii-debug-toolbar); if you want to keep it enabled, override the `defaultDisabledLogRoutes` property.

    ```
    'errorHandler' => [
        'class'             => 'vendor.nkovacs.yii-whoops.WhoopsErrorHandler',
        'disabledLogRoutes' => 'MyCustomRouteClass'
    ]
    ```

Sample screenshot
-----------------

[](#sample-screenshot)

[ ![](https://camo.githubusercontent.com/de70f4aab4014f804704b6bc780cd923010685c7c0aefd6f73b7beb86f3666fd/687474703a2f2f692e696d6775722e636f6d2f70717438664b342e706e67)](http://i.imgur.com/pqt8fK4.png)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 52% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

6

Last Release

4363d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2269242?v=4)[Nikola Kovacs](/maintainers/nkovacs)[@nkovacs](https://github.com/nkovacs)

---

Top Contributors

[![igorsantos07](https://avatars.githubusercontent.com/u/532299?v=4)](https://github.com/igorsantos07 "igorsantos07 (13 commits)")[![nkovacs](https://avatars.githubusercontent.com/u/2269242?v=4)](https://github.com/nkovacs "nkovacs (11 commits)")[![nkovacs2](https://avatars.githubusercontent.com/u/9216060?v=4)](https://github.com/nkovacs2 "nkovacs2 (1 commits)")

### Embed Badge

![Health badge](/badges/nkovacs-yii-whoops/health.svg)

```
[![Health](https://phpackages.com/badges/nkovacs-yii-whoops/health.svg)](https://phpackages.com/packages/nkovacs-yii-whoops)
```

###  Alternatives

[zhuravljov/yii2-debug

Yii debug toolbar

144501.1k4](/packages/zhuravljov-yii2-debug)[yireo/magento2-whoops

Magento 2 module adding Whoops error handling

102703.5k](/packages/yireo-magento2-whoops)[snowair/phalcon-debugbar

Integrates PHP Debug Bar with Phalcon.

160123.3k1](/packages/snowair-phalcon-debugbar)[rarst/wps

WordPress plugin for whoops error handler.

129133.2k3](/packages/rarst-wps)[franzl/whoops-middleware

PSR-15 compatible middleware for Whoops, the pretty error handler

282.0M20](/packages/franzl-whoops-middleware)[clawrock/magento2-debug

Magento 2 debug module based on Magento 1 Profiler with some extra features.

8419.3k1](/packages/clawrock-magento2-debug)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
