iceagency / lumberjack-sentry-service-provider
A Service Provider for the Lumberjack framework that adds a Sentry integration.
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.0
- rareloop/lumberjack-core: ^3.2.0
- sentry/sentry: ^1.9.1
Requires (Dev)
- php-coveralls/php-coveralls: ^2.0
- phpunit/phpunit: ^6.0
- squizlabs/php_codesniffer: ^3.2
This package is not auto-updated.
Last update: 2024-11-02 00:28:45 UTC
README
A Service Provider for the Lumberjack framework that allows simple integration to Sentry.
Written & maintained by the team at The ICE Agency
Requirements
- PHP >=7.0
- Installation via Composer
- Lumberjack
Installing
- Install Lumberjack, see the guide here.
- Install via Composer:
composer require iceagency/lumberjack-sentry-service-provider
Getting Started
- Create a config file called
config/sentry.php
- Add the following:
<?php
return [
'enabled' => getenv('SENTRY_ENABLED'),
'dsn' => getenv('SENTRY_DSN')
];
- Add your Sentry DSN to your .env
SENTRY_DSN=https://public:secret@sentry.example.com/1
- Add the Service Provider to the Providers array in
config/app.php
as follows:
'providers' => [
...
IceAgency\Lumberjack\Providers\SentryServiceProvider::class,
...
],
Usage
By default, Sentry will automatically be sent exceptions, to disable Sentry for a specific environment, add this following to your .env
SENTRY_ENABLED=false