PHP code example of stratify / error-handler-module

1. Go to this page and download the library: Download stratify/error-handler-module 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/ */

    

stratify / error-handler-module example snippets


$app = new Application([
    'stratify/error-handler-module',
]);

$http = pipe([
    ErrorHandlerMiddleware::class,

    // ...
]);
$app->http($http)->run();

$app = new Application($modules, 'dev');