spiral-packages / yii-error-handler-bridge
Yii Error Handler integration package for Spiral Framework
Installs: 27 305
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^8.1
- spiral/boot: ^3.0
- spiral/exceptions: ^3.0
- yiisoft/error-handler: 4.1.0
Requires (Dev)
- buggregator/trap: ^1.13
- mockery/mockery: ^1.5
- phpunit/phpunit: ^9.5.28
- spiral/code-style: ^2.2.2
- spiral/http: ^3.0
- spiral/testing: ^2.9
- vimeo/psalm: ^6.10
README
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.