Integrates the Whoops library into Silex whoops
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.
In your project root folder
composer require texthtml/whoops-silex ~1.0
- In your Silex container configuration, register the WhoopsServiceProvider:
use WhoopsSilex\WhoopsServiceProvider; $container->register(new WhoopsServiceProvider);