PHPackages                             andrey-helldar/sentriable-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. andrey-helldar/sentriable-laravel

Abandoned → [dragon-code/sentriable-laravel](/?search=dragon-code%2Fsentriable-laravel)ArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

andrey-helldar/sentriable-laravel
=================================

sentry/sentry-laravel package extension

v2.1.0(4y ago)6298MITPHPPHP ^7.2.5|^8.0

Since Jul 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/TheDragonCode/sentriable-laravel)[ Packagist](https://packagist.org/packages/andrey-helldar/sentriable-laravel)[ Fund](https://paypal.me/helldar)[ Fund](https://yoomoney.ru/to/410012608840929)[ RSS](/packages/andrey-helldar-sentriable-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (7)Versions (14)Used By (0)

Sentriable Laravel
==================

[](#sentriable-laravel)

[![Sentriable Laravel](https://camo.githubusercontent.com/230be0ee7553f27514d9b8ddbfcc05604e1adb239341122c61c7ce2d58f8ad7e/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f546865447261676f6e436f64652f73656e74726961626c652d6c61726176656c2e7376673f6272616e643d73656e747279)](https://camo.githubusercontent.com/230be0ee7553f27514d9b8ddbfcc05604e1adb239341122c61c7ce2d58f8ad7e/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f546865447261676f6e436f64652f73656e74726961626c652d6c61726176656c2e7376673f6272616e643d73656e747279)

[![Stable Version](https://camo.githubusercontent.com/ce341d9805dd9ef3ad3d70956e0957ab1f00db55a2751600ae0e6e5dd2aa292c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f546865447261676f6e436f64652f73656e74726961626c652d6c61726176656c3f6c6162656c3d737461626c65267374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/sentriable-laravel)[![Unstable Version](https://camo.githubusercontent.com/b842dab29abdb0f93349e795496f472d7748d125ec7b784b03ae526d1ee9aea2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e737461626c652d6465762d2d6d61737465722d6f72616e67653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/sentriable-laravel)[![Total Downloads](https://camo.githubusercontent.com/8c38323645e910bd87b534f5aea07daf6801a4735d9bde52a9664207208b2a9b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f73656e74726961626c652d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/sentriable-laravel)[![License](https://camo.githubusercontent.com/0a52a744e116a092083156bbb1c06ad0aef85255a77ab8e1a12c3067b7ce9cfe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647261676f6e2d636f64652f73656e74726961626c652d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Installation
------------

[](#installation)

To get the latest version, simply require the project using [Composer](https://getcomposer.org):

```
$ composer require dragon-code/sentriable-laravel
```

Or manually update `require` block of `composer.json` and run `composer update`.

```
{
    "require": {
        "dragon-code/sentriable-laravel": "^2.0"
    }
}
```

### Upgrade from `andrey-helldar/sentriable-laravel`

[](#upgrade-from-andrey-helldarsentriable-laravel)

1. Replace `"andrey-helldar/sentriable-laravel": "^1.0"` with `"dragon-code/sentriable-laravel": "^2.0"` in the `composer.json` file;
2. Replace `Helldar\Sentry` namespace prefix with `DragonCode\Sentry`;
3. Call the `composer update` console command.

### Lumen

[](#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.

```
// $app->register(App\Providers\AppServiceProvider::class);

```

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`.

```
$app->register(\DragonCode\Sentry\ServiceProvider::class);
```

How to use
----------

[](#how-to-use)

Add Sentry reporting to `App/Exceptions/Handler.php`.

### For Laravel 7.x and later

[](#for-laravel-7x-and-later)

```
use DragonCode\Sentry\Traits\Sentriable;
use Throwable;

public function report(Throwable $exception)
{
    parent::report($exception);

    if ($this->shouldReport($e)) {
        $this->sentryException($e);
    }
}
```

### For Laravel 6.x

[](#for-laravel-6x)

```
use DragonCode\Sentry\Traits\Sentriable;
use Exception;

public function report(Exception $exception)
{
    parent::report($exception);

    if ($this->shouldReport($e)) {
        $this->sentryException($e);
    }
}
```

For more information on configuring the Sentry package, see [here](https://docs.sentry.io/platforms/php/laravel).

### Using code elsewhere

[](#using-code-elsewhere)

```
use DragonCode\Sentry\Traits\Sentriable
use Throwable;

protected function handle()
{
    try {
        // some code
    } catch (Throwable $e) {
        $this->sentryException($e);
    }
}
```

### Use in loops with flushing

[](#use-in-loops-with-flushing)

```
use DragonCode\Sentry\Traits\Sentriable;
use Throwable;

protected function handle()
{
    foreach ($this->values as $item) {
        try {
            $this->sentryFlush();

            // some code
        } catch (Throwable $e) {
            $this->sentryException($e);
        }
    }
}
```

### Versioning

[](#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:

```
use DragonCode\Sentry\Facades\Sha;

return [
    // ...
    'release' => Sha::get()
    // ...
];
```

License
-------

[](#license)

This package is licensed under the [MIT License](LICENSE).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~77 days

Recently: every ~118 days

Total

13

Last Release

1182d ago

Major Versions

1.x-dev → v2.0.02021-11-16

PHP version history (3 changes)v1.0.0PHP ^7.2.5

v1.1.0PHP ^7.2.5|^8.0

2.x-devPHP ^7.2.5 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b77790e612f1c9beed1e1533e36eba4954fbd6da2a5c9f71e845cd0f5465f0ad?d=identicon)[Helldar](/maintainers/Helldar)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (25 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (20 commits)")[![andrey-helldar](https://avatars.githubusercontent.com/u/10347617?v=4)](https://github.com/andrey-helldar "andrey-helldar (9 commits)")

---

Tags

loglaravelloggingsentryerror-handlererror-monitoringcrash-reportingcrash-reportsdragondragon codeandrey helldar

### Embed Badge

![Health badge](/badges/andrey-helldar-sentriable-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/andrey-helldar-sentriable-laravel/health.svg)](https://phpackages.com/packages/andrey-helldar-sentriable-laravel)
```

###  Alternatives

[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327134.8M151](/packages/sentry-sdk)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
