https://github.com/nofutur3/nette-sentry
Nette integration for Sentry
https://github.com/nofutur3/nette-sentry
composer nette sentry
Last synced: 4 months ago
JSON representation
Nette integration for Sentry
- Host: GitHub
- URL: https://github.com/nofutur3/nette-sentry
- Owner: nofutur3
- License: mit
- Created: 2016-12-22T19:07:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-09T13:00:33.000Z (over 7 years ago)
- Last Synced: 2025-10-13T14:29:52.400Z (9 months ago)
- Topics: composer, nette, sentry
- Language: PHP
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sentry for [Nette](https://www.nette.org) framework
[](https://travis-ci.org/nofutur3/nette-sentry)
[](https://packagist.org/packages/nofutur3/nette-sentry)
[](https://packagist.org/packages/nofutur3/nette-sentry)
Nette integration for Sentry
## Installation
The recommended installation is using [composer](https://getcomposer.org/).
_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](https://nette.org/en/) 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/
```