nofutur3 / nette-sentry
Nette integration for Sentry (http://getsentry.com)
v0.9.0
2016-12-22 20:35 UTC
Requires
- php: >=5.3.3
- nette/nette: >=2.3.0
- sentry/sentry: >=1.5.0
Requires (Dev)
- phpunit/phpunit: ^4.6.6
This package is auto-updated.
Last update: 2024-11-10 05:09:01 UTC
README
Nette integration for Sentry
Installation
The recommended installation is using composer.
If you are not still using composer, you should check it out. It's 2016(+) afterall.
composer require nofutur3/nette-sentry
Alternative way - in case you are not able to use composer. Download the source code (ie clone git repo) into your project and require it some way. For nette framework like this in your bootstrap file:
$configurator
->createRobotLoader()
->addDirectory(__DIR__ . 'path/to/library/');
Usage
With Nette (2.3+)
extensions:
sentry: Nofutur3\Sentry\DI\SentryExtension
sentry:
dsn: (your dsn from sentry)
Extended configuration with default values
sentry:
dsn: (your dsn from sentry)
debug: false
user:
email: email # email property in IIdentity
username: username # username property in IIDentity
skip_capture:
- 'Nette\Neon\Exception' # will not report these exceptions
options: # check: https://docs.sentry.io/clients/php/config/