PHP code example of maduser / argon-whoops

1. Go to this page and download the library: Download maduser/argon-whoops 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/ */

    

maduser / argon-whoops example snippets


use Maduser\Argon\Whoops\Provider\WhoopsServiceProvider;

$container->register(WhoopsServiceProvider::class);

$container->register(WhoopsServiceProvider::class);
$container->set(AppExceptionPolicy::class)
    ->tag(ExceptionPolicyInterface::class);

$parameters->set('app.env', 'local');
$parameters->set('app.debug', true);

use Maduser\Argon\Whoops\Config\WhoopsParameter;

$parameters->set(WhoopsParameter::ENABLED, true);
$parameters->set(WhoopsParameter::PAGE_TITLE, 'Argon Debug Exception');