spiral-packages/yii-error-handler-bridge

Yii Error Handler integration package for Spiral Framework

1.1.3 2025-04-18 13:18 UTC

This package is auto-updated.

Last update: 2025-04-18 13:22:09 UTC


README

PHP Version Require Latest Stable Version phpunit psalm Codecov Total Downloads

Requirements

Make sure that your server is configured with following PHP version and extensions:

  • PHP 8.1+
  • Spiral framework 3.0+

Documentation, Installation, and Usage Instructions

See the documentation for detailed installation and usage instructions.

Acceptance Test Sandbox

This package includes an acceptance test sandbox that demonstrates how the different error renderers work with various verbosity levels. The sandbox provides a simple web interface to visualize errors rendered in HTML, JSON, XML, and Plain Text formats.

Running the Sandbox

You can run the sandbox using Composer:

composer sandbox

Or manually start the PHP built-in web server from the project root:

php -S localhost:8000 tests/Acceptance/server.php

Then open your browser and navigate to http://localhost:8000

The interface allows you to select different renderer types (HTML, JSON, Plain Text, XML) and verbosity levels (Basic, Verbose, Debug) to see how exceptions are presented in each format.

This sandbox is useful for testing and understanding how the error renderers work in different scenarios without needing to integrate them into a full application.

License

The MIT License (MIT). Please see License File for more information.