marcopollacci / sentryexpressive
Utility to connect Zend Expressive Framework to Sentry
Installs: 62
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/marcopollacci/sentryexpressive
Requires
- php: ^7.1
- sentry/sdk: ^2.0
This package is auto-updated.
Last update: 2025-09-20 02:19:33 UTC
README
Sentry Delegator for Zend Expressive Framework
Install by Composer
composer require marcopollacci/sentryexpressive
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 */ }