PHP code example of org_heigl / error_focus

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

    

org_heigl / error_focus example snippets



\Org_Heigl\ErrorFocus\ErrorFocus::init([
    __DIR__ . '/../vendor',
]);

\Org_Heigl\ErrorFocus\ErrorFocus::init([
    __DIR__ . '/../vendor',
], [
    [$myErrorHandlerInstance, 'myErrorHandlerMethod'],
    $myInvocableInstance, 
    [MyStaticErrorHandler::class, 'myStaticErrorHandlerMethod'],
])