Search by

yireo / magento2-whoops

yireo

Magento 2 module adding Whoops error handling

Package info

github.com/yireo/Yireo_Whoops

Homepage

Type:magento2-module

pkg:composer/yireo/magento2-whoops

Fund package maintenance!

yireo

www.paypal.me/yireo

Statistics

Installs: 829 599

Dependents: 0

Suggesters: 0

Stars: 101

Open Issues: 3

0.2.5 2026-06-01 17:54 UTC

This package is auto-updated.

Last update: 2026-11-11 10:38:11 UTC


README

Magento version PHP version License Latest Version

This module adds Whoops error handling to Magento 2.

Installation

Use composer to install this extension. First make sure that Magento is installed via composer, and that there is a valid composer.json file present.

Next, install our module using the following command:

composer require --dev yireo/magento2-whoops

Next, install the new module into Magento itself:

./bin/magento module:enable Yireo_Whoops
./bin/magento setup:upgrade

Check whether the module is successfully installed in Admin > Stores > Configuration > Yireo > Yireo Whoops.

Manual copy

We recommend composer to install this package. However, if you want a manual copy instead, these are the steps:

  • Upload the files in the source/ folder to the folder app/code/Yireo/Whoops of your site
  • Run php -f bin/magento module:enable Yireo_Whoops
  • Run php -f bin/magento setup:upgrade
  • Flush the Magento cache

Usage

This module replaces the default error and exception handling of Magento 2 with Whoops. If you want to know what Whoops is, check out their site. There is no further usage. This module replaces the default Magento\Framework\App\Http class with its own and then adds in Whoops. This means that whenever an exception or error is not caught in the code, it will be output using Whoops.

You can test this yourself by adding some dummy code somewhere in Magento 2:

trigger_error('test');

or:

throw new RuntimeException('test');

Testing

This repository contains some PHPUnit tests:

  • Make sure Magento is installed with composer packages in vendor/ (aka via composer install)
  • Next, navigate to the repository of this extension
  • Execute the following command, replacing PATH_TO_MAGENTO with the actual path to Magento:
phpunit -c dev/tests/unit/phpunit.xml --bootstrap PATH_TO_MAGENTO/vendor/autoload.php Test/Unit

PWA compatibility

This frontend extension will be completely replaced by React or Vue functionality, and therefore, this extension will not be made compatible with PWA.

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation