PHP code example of kaspernj / peak_flow_php

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

    

kaspernj / peak_flow_php example snippets


class Handler extends ExceptionHandler {
  public function report(Exception $exception) {
    $reporter = new \PeakFlow\Reporter(array("authToken" => "your-token"));
    $reporter->reportException($exception);

    parent::report($exception);
  }
}