PHP code example of bin-ism / error-monitoring

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

    

bin-ism / error-monitoring example snippets

 

return [
    'token' => 'YOUR_TOKEN',
];
 
 public function register()
    {
        $this->reportable(function (Throwable $e) {
            \Binism\ErrorMonitoring\Monitor::reportError($e);
        });
    }