Download the PHP package rsands2801/sentry-laravel without Composer
On this page you can find all versions of the php package rsands2801/sentry-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rsands2801/sentry-laravel
More information about rsands2801/sentry-laravel
Files in rsands2801/sentry-laravel
Package sentry-laravel
Short Description Laravel integration for Sentry (https://sentry.io)
License Apache-2.0
Homepage https://sentry.io
Informations about the package sentry-laravel
sentry-laravel
Laravel integration for Sentry.
Laravel 5.x
Install the sentry/sentry-laravel
package:
Add the Sentry service provider and facade in config/app.php
:
Add Sentry reporting to app/Exceptions/Handler.php
:
Create the Sentry configuration file (config/sentry.php
):
Add your DSN to .env
:
Laravel 4.x
Install the sentry/sentry-laravel
package:
Add the Sentry service provider and facade in config/app.php
:
Create the Sentry configuration file (config/sentry.php
):
Lumen 5.x
Install the sentry/sentry-laravel
package:
Register Sentry in bootstrap/app.php
:
Add Sentry reporting to app/Exceptions/Handler.php
:
Create the Sentry configuration file (config/sentry.php
):
Adding Context
The mechanism to add context will vary depending on which version of Laravel you're using, but the general approach is the same. Find a good entry point to your application in which the context you want to add is available, ideally early in the process.
In the following example, we'll use a middleware:
Contributing
First, make sure you can run the test suite. Install development dependencies :
You may now use phpunit :
Resources
- Bug Tracker
- Code
- Mailing List
- IRC (irc.freenode.net, #sentry)