PHPackages                             punktde/sentry-flow - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. punktde/sentry-flow

ActiveNeos-package[Logging &amp; Monitoring](/categories/logging)

punktde/sentry-flow
===================

Sends exceptions and additional data to Sentry server using Raven client.

5.0.0(1y ago)478.4k↓36.4%2[1 issues](https://github.com/punktDe/sentry-flow/issues)1MITPHP

Since Jan 15Pushed 1y ago7 watchersCompare

[ Source](https://github.com/punktDe/sentry-flow)[ Packagist](https://packagist.org/packages/punktde/sentry-flow)[ RSS](/packages/punktde-sentry-flow/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (29)Used By (1)

[PunktDe.Sentry.Flow](https://github.com/punktDe/sentry-flow)
=============================================================

[](#punktdesentryflow)

[![Latest Stable Version](https://camo.githubusercontent.com/6d9094f1090705f672ba592b2534f0591e94b86918c0f36c8f37786f4b029164/68747470733a2f2f706f7365722e707567782e6f72672f70756e6b7444652f73656e7472792d666c6f772f762f737461626c65)](https://packagist.org/packages/punktDe/sentry-flow) [![Total Downloads](https://camo.githubusercontent.com/e375f626f7e6db90af4ce85918c79e759fe0e9aa39a2566326ce4356cf9fd992/68747470733a2f2f706f7365722e707567782e6f72672f70756e6b7444652f73656e7472792d666c6f772f646f776e6c6f616473)](https://packagist.org/packages/punktDe/sentry-flow) [![License](https://camo.githubusercontent.com/04cae43cc53bcd1793822c3f932b9181e190718b37b8c3fc8a4cce61488d70d4/68747470733a2f2f706f7365722e707567782e6f72672f70756e6b7444652f73656e7472792d666c6f772f6c6963656e7365)](https://packagist.org/packages/punktDe/sentry-flow)

This is a Sentry client package for the Flow framework.

Have a look at  for more information about Sentry.

Installation
------------

[](#installation)

```
$ composer require punktde/sentry-flow

```

### Compatibilty matrix

[](#compatibilty-matrix)

Flow Sentry ClientFlowSentry SDKSentry Server^1.0^4.0^1.0\*^2.0^5.0^1.0\*^3.0^5.0, ^6.0^2.0\*^4.0^5.0 - ^8.0^3.0&gt;= v20.6.0^5.0^5.0 - ^9.0^4.0&gt;= v20.6.0Configuration
-------------

[](#configuration)

Add the following to your `Settings.yaml` and replace the `dsn` setting with your project DSN (API Keys in your Sentry project):

```
PunktDe:
  Sentry:
    Flow:
      dsn: 'https://public_key@your-sentry-server.com/project-id'
```

You can also set the Sentry Environment to filter your exceptions by e.g. dev-/staging-/live-system. Set the env variable `SENTRY_ENVIRONMENT` or add your value to your `Settings.yaml`:

```
PunktDe:
  Sentry:
    Flow:
      environment: 'live'
```

Furthermore you can set the Sentry Release version to help to identifiy with which release an error occurred the first time. By default, a file which is starting with the name `RELEASE_` is searched and the values after `RELEASE_` is used for Sentry. Alternatively you can override the filebased release number and set an environment variable `SENTRY_RELEASE` or add your value to your `Settings.yaml`:

```
PunktDe:
  Sentry:
    Flow:
      release: '5.0.3'
```

If you need to use a custom transport e.g. to write the sentry reports to a file, you must implement the `Sentry\TransportInterface`:

```
