PHP code example of geoffroy-aubry / errorhandler

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

    

geoffroy-aubry / errorhandler example snippets


    
    
    

    
    
    use GAubry\ErrorHandler\ErrorHandler;
    
    $aConfig = array(
        'display_errors'        => true,
        'error_log_path'        => '/var/log/xyz.log',
        'error_reporting_level' => -1,
        'auth_error_suppr_op'   => false
    );
    new ErrorHandler($aConfig);
    
    …
    

    $oErrorHandler = new ErrorHandler($aConfig);
    $oErrorHandler->addExcludedPath('[CouchbaseNative]', true);
    
bash
    $ curl -sS https://getcomposer.org/installer | php
    
bash
    $ php vendor/bin/phpmd src/ text codesize,design,unusedcode,naming,controversial