PHP code example of mouf / whoops-stackphp

1. Go to this page and download the library: Download mouf/whoops-stackphp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mouf / whoops-stackphp example snippets


use Whoops\StackPhp\WhoopsMiddleWare;

$router = new WhoopsMiddleWare(
	new MyOtherRouter(
		new YetAnotherRouter()));


public function __construct(HttpKernelInterface $router, $catchExceptions = true, $catchErrors = true);