kaspernj/peak_flow_php

PeakFlow integration for PHP

v1.0.3 2019-01-17 12:40 UTC

This package is not auto-updated.

Last update: 2025-07-12 19:08:13 UTC


README

PeakFlow error reporting for PHP.

Installation

Add something like this to your composer.json:

{
  "require": {
    "kaspernj/peak_flow_php": "1.0.2"
  }
}

Laravel

In app/Exceptions/Handler.php add something like this in the report-method:

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

    parent::report($exception);
  }
}