PHPackages                             crawly/mezzio-sentry - 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. crawly/mezzio-sentry

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

crawly/mezzio-sentry
====================

Mezzio integration for Sentry.

v1.0.0(6y ago)0168MITPHPPHP ^7.3

Since Jan 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/crawly/mezzio-sentry)[ Packagist](https://packagist.org/packages/crawly/mezzio-sentry)[ RSS](/packages/crawly-mezzio-sentry/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

MezzioSentry
============

[](#mezziosentry)

[![Latest Stable Version](https://camo.githubusercontent.com/8b8b379d3f19152c27dc3d44c42eb114d96e5dd33845efe1e669bd711d36b247/68747470733a2f2f706f7365722e707567782e6f72672f637261776c792f6d657a7a696f2d73656e7472792f762f737461626c65)](https://packagist.org/packages/crawly/mezzio-sentry)[![Total Downloads](https://camo.githubusercontent.com/1a73bf05cc8b6a28ae521e33ac3f8d1d7bf7c56f2879f5aec0198e2811aa6812/68747470733a2f2f706f7365722e707567782e6f72672f637261776c792f6d657a7a696f2d73656e7472792f646f776e6c6f616473)](https://packagist.org/packages/crawly/mezzio-sentry)[![License](https://camo.githubusercontent.com/de6eb620afd1b203677e5c71c82cf4ff2c9f28a9cf00f51866fbccbfd609e4e2/68747470733a2f2f706f7365722e707567782e6f72672f637261776c792f6d657a7a696f2d73656e7472792f6c6963656e7365)](https://packagist.org/packages/crawly/mezzio-sentry)

Mezzio integration for Sentry ()

Dependencies
------------

[](#dependencies)

- PHP 7.3+

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

[](#installation)

Installation of MezzioSentry is only officially supported using Composer:

```
php composer.phar require 'crawly/mezzio-sentry'
```

Usage
-----

[](#usage)

### Library configuration

[](#library-configuration)

If the module was not automatically registered by composer, you need to enable the module by adding it to the list of registered modules in the config/config.php file of your project.

```
// config/config.php

$aggregator = new ConfigAggregator([

    // MezzioSentry configuration
    \MezzioSentry\ConfigProvider::class,

    // ...

], $cacheConfig['config_cache_path']);
```

### Options

[](#options)

Here are the all options available

Option nameDefaultDescriptiondsn`@$_SERVER['sentry_dsn']`Get Sentry DSN from a environment variabledevelopment-environmentfalseEnable or disable in development environment#### Configuration file example

[](#configuration-file-example)

```
// config/autoload/sentry.global.php
