Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nofutur3/nette-sentry
Nette integration for Sentry
https://github.com/nofutur3/nette-sentry
composer nette sentry
Last synced: 4 days 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-09T13:00:33.000Z (almost 6 years ago)
- Last Synced: 2024-12-31T11:53:43.820Z (8 days ago)
- Topics: composer, nette, sentry
- Language: PHP
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- 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
[![Build Status](https://travis-ci.org/nofutur3/nette-sentry.svg?branch=master)](https://travis-ci.org/nofutur3/nette-sentry)
[![Downloads this Month](https://img.shields.io/packagist/dm/nofutur3/nette-sentry.svg)](https://packagist.org/packages/nofutur3/nette-sentry)
[![Latest stable](https://img.shields.io/packagist/v/nofutur3/nette-sentry.svg)](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/
```