PHP code example of eden / handler

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

    

eden / handler example snippets


eden('handler')
	->exception()
	->register()
	->on('exception', function(
		$type,
		$level,
        $reporter,
		$file,
		$line,
        $message,
		$trace
	) {
		echo 'An exception has occurred';
	});

eden('handler')
	->error()
	->register()
	->on('error', function(
		$type,
		$level,
        $reporter,
		$file,
		$line,
        $message,
		$trace
	) {
		echo 'An error has occurred';
	});