PHPackages                             ppito/laminas-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. ppito/laminas-whoops

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

ppito/laminas-whoops
====================

Laminas-Whoops, integrated whoops in Laminas Framework

2.3.0(1y ago)4570.2k—9.1%7[1 PRs](https://github.com/Ppito/laminas-whoops/pulls)1MITPHPPHP ^8.1

Since Jan 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Ppito/laminas-whoops)[ Packagist](https://packagist.org/packages/ppito/laminas-whoops)[ Docs](https://github.com/ppito/laminas-whoops)[ RSS](/packages/ppito-laminas-whoops/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (1)

Laminas-Whoops, integrated [whoops](https://github.com/filp/whoops) in Laminas
==============================================================================

[](#laminas-whoops-integrated-whoops-in-laminas)

---

[![Whoops!](https://camo.githubusercontent.com/47bab97a45fae9600d0d372f9647930e9ea665d06076085eda3a848235902878/687474703a2f2f692e696d6775722e636f6d2f305651706539362e706e67)](https://camo.githubusercontent.com/47bab97a45fae9600d0d372f9647930e9ea665d06076085eda3a848235902878/687474703a2f2f692e696d6775722e636f6d2f305651706539362e706e67)

**whoops** is an error handler base/framework for PHP. Out-of-the-box, it provides a pretty error interface that helps you debug your web projects, but at heart it's a simple yet powerful stacked error handling system.

Table of Contents
=================

[](#table-of-contents)

- [Module installation](#module-installation)
- [Features](#features)
    - [Render View Manager - Twig Support](#render-view-manager---twig-support)
    - [Module Visibility Manager](#module-visibility-manager)
- [License](#license)

Module installation
===================

[](#module-installation)

1. `cd my/project/directory`
2. create a `composer.json` file with following contents:

    ```
    {
        "require-dev": {
            "ppito/laminas-whoops": "^2.0"
        }
    }
    ```
3. install composer via `curl -s http://getcomposer.org/installer | php` (on windows, download  and execute it with PHP)
4. run `php composer.phar install`
5. open `my/project/directory/configs/modules.config.php` and add the following key :

    ```
    'WhoopsErrorHandler', // must be added as the first module
    ```
6. optional : copy `config/module.config.php` in `my/project/directory/config/autoload/laminas-whoops.local.php`
7. optional : edit `my/project/directory/config/autoload/laminas-whoops.local.php`

Features
========

[](#features)

### Render View Manager - Twig Support

[](#render-view-manager---twig-support)

By default this module use the simple php render, but you can now specify your favorite render.

##### Usage :

[](#usage-)

`Twig render` has been supported, you just need to change the `template_render` configuration:

```
'template_render' => 'laminas_whoops/twig_error',
```

### Module Visibility Manager

[](#module-visibility-manager)

It is now possible to manage the module loading by implement your own rules. For example, the module can be loaded only for the admin users or only for dev&amp;preprod environments.

##### Usage :

[](#usage--1)

- Create your own class by implement the interface [VisibilityServiceInterface](src/Service/VisibilityServiceInterface.php) (or the abstract [VisibilityServiceAbstract](src/Service/VisibilityServiceAbstract.php))
    - @see example [VisibilityService.visibility-example.php](src/Service/VisibilityService.visibility-example.php).
- Change the `visibility_service_name` configuration to specify the name of your class.
    - @see example [module.config.visibility-example.php](config/module.config.visibility-example.php).

    ```
    'visibility_service_name' => Application\Service\VisibilityService::class,
    ```

### Ignored Exceptions

[](#ignored-exceptions)

By default, this module will route all exceptions to Whoops; however, you can create a list of exception classes that will be ignored by Whoops.

##### Usage:

[](#usage)

Set the `ignored_exceptions` configuration to an array of class names:

```
'ignored_exceptions' => [My\Exception::class, My\OtherException::class]
```

License
=======

[](#license)

**ppito/laminas-whoops** is licensed under the MIT License - See the [LICENSE](LICENSE.md) file for details.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance45

Moderate activity, may be stable

Popularity43

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~630 days

Total

4

Last Release

424d ago

PHP version history (3 changes)2.0.0PHP ^7.2

2.1.0PHP ^7.3 || ^8.0

2.3.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/344f6c54cd41783a9a9fc19f7cd3bcfc841ceca784a42e85957bc9f1f9f0746d?d=identicon)[Ppito](/maintainers/Ppito)

---

Top Contributors

[![Ppito](https://avatars.githubusercontent.com/u/1479748?v=4)](https://github.com/Ppito "Ppito (6 commits)")[![earthiverse](https://avatars.githubusercontent.com/u/602905?v=4)](https://github.com/earthiverse "earthiverse (2 commits)")[![micktonnelier](https://avatars.githubusercontent.com/u/151614880?v=4)](https://github.com/micktonnelier "micktonnelier (2 commits)")[![demiankatz](https://avatars.githubusercontent.com/u/309069?v=4)](https://github.com/demiankatz "demiankatz (1 commits)")[![matheusdelima](https://avatars.githubusercontent.com/u/5695569?v=4)](https://github.com/matheusdelima "matheusdelima (1 commits)")

---

Tags

laminaslaminas-whoopsphptwig-supportwhoopszend-frameworkzf3zf3-whoopslaminaswhoopsphp error

### Embed Badge

![Health badge](/badges/ppito-laminas-whoops/health.svg)

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

###  Alternatives

[filp/whoops

php error handling for cool kids

13.2k402.4M1.4k](/packages/filp-whoops)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1076.9M130](/packages/laminas-laminas-cache)[laminas/laminas-developer-tools

Module for developer and debug tools for use with laminas-mvc applications.

252.0M33](/packages/laminas-laminas-developer-tools)[yireo/magento2-whoops

Magento 2 module adding Whoops error handling

102703.5k](/packages/yireo-magento2-whoops)

PHPackages © 2026

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