PHP code example of getolympus / olympus-hades-error-handler

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

    

getolympus / olympus-hades-error-handler example snippets


namespace MyCustomPackage;

use GetOlympus\Hades\Hades;

class ErrorDebugger extends Hades
{
}


/**
 * Use the ErrorDebugger to display errors
 */
$err = ErrorDebugger::register([
    'debug' => WP_DEBUG,
    'level' => WP_DEBUG ? 500 : 100,
    'logs'  => 'my/custom/logs/folder/',
    'title' => 'My custom handler title',
]);