PHP code example of webforge / fatal-error-handler

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

    

webforge / fatal-error-handler example snippets


// do vendor autoload

$handler = new \Webforge\FatalErrorHandler('[email protected]');
$handler->register();

// do vendor autoload

$handler = new \Webforge\FatalErrorHandler('[email protected]', function($recipient, $subject, $text, $headersString) {
  // send your own mail here, or log, etc
  return $successOfMail;
});
$handler->register();