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
Requires
- php: ^7.3
- sentry/sdk: ^2.0
This package is auto-updated.
Last update: 2025-09-19 23:21:45 UTC
README
Sentry Delegator for Mezzio - Lamisas Framework
Install by Composer
composer require marcopollacci/mezzio-sentrydelegator
Usage
- 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 ] ];
- 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 */ }