Download the PHP package dragon-code/sentriable-laravel without Composer
On this page you can find all versions of the php package dragon-code/sentriable-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dragon-code/sentriable-laravel
More information about dragon-code/sentriable-laravel
Files in dragon-code/sentriable-laravel
Package sentriable-laravel
Short Description sentry/sentry-laravel package extension
License MIT
Informations about the package sentriable-laravel
Sentriable Laravel
Installation
To get the latest version, simply require the project using Composer:
Or manually update require
block of composer.json
and run composer update
.
Upgrade from andrey-helldar/sentriable-laravel
- Replace
"andrey-helldar/sentriable-laravel": "^1.0"
with"dragon-code/sentriable-laravel": "^2.0"
in thecomposer.json
file; - Replace
Helldar\Sentry
namespace prefix withDragonCode\Sentry
; - Call the
composer update
console command.
Lumen
This package is focused on Laravel development, but it can also be used in Lumen with some workarounds. Because Lumen works a little different, as it is like a barebone version of
Laravel and the main configuration parameters are instead located in bootstrap/app.php
, some alterations must be made.
You can install Laravel Lang Publisher in app/Providers/AppServiceProvider.php
, and uncommenting this line that registers the App Service Providers so it can properly load.
If you are not using that line, that is usually handy to manage gracefully multiple Lumen installations, you will have to add this line of code under
the Register Service Providers
section of your bootstrap/app.php
.
How to use
Add Sentry reporting to App/Exceptions/Handler.php
.
For Laravel 7.x and later
For Laravel 6.x
For more information on configuring the Sentry package, see here.
Using code elsewhere
Use in loops with flushing
Versioning
To get the current version of the application, run the command php artisan git:version
.
If a tag is set on the current commit, it will be passed in the release
field of the Sentry, otherwise the sha of the current commit will be taken.
It is better to do this once when deploying the application.
You also need to uncomment the release
key in the config/sentry.php
file and specify the following value:
License
This package is licensed under the MIT License.
All versions of sentriable-laravel with dependencies
illuminate/console Version ^6.0|^7.0|^8.0|^9.0
illuminate/contracts Version ^6.0|^7.0|^8.0|^9.0
illuminate/http Version ^6.0|^7.0|^8.0|^9.0
illuminate/support Version ^6.0|^7.0|^8.0|^9.0
illuminate/validation Version ^6.0|^7.0|^8.0|^9.0
sentry/sentry-laravel Version ^2.10