marcopollacci/mezzio-sentrydelegator

Utility to connect Mezzio to Sentry

Installs: 223

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/marcopollacci/mezzio-sentrydelegator

1.0.1 2020-01-19 10:29 UTC

This package is auto-updated.

Last update: 2025-09-19 23:21:45 UTC


README

Build Status Maintainability Latest Stable Version Total Downloads License composer.lock

Average time to resolve an issue Percentage of issues still open

Sentry Delegator for Mezzio - Lamisas Framework

Install by Composer

composer require marcopollacci/mezzio-sentrydelegator

Usage

  1. Set at your config file with sentry token and dsn (if no config given, no exception send to sentry). Es:
return [
    'sentry' => [
        'dsn' => 'https://<your url>>/<your id>',
        'environment' => 'produzione' #optional
    ]
];
  1. Enjoy it :D!

Additional usage in try / catch statament

Code Example

        try {
            throw new \Exception('something');
        }catch(\Exception $e){
            \Sentry\captureException($e);
            /* something else you want */
        }