PHPackages                             leeroy/sail-sentryio - 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. leeroy/sail-sentryio

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

leeroy/sail-sentryio
====================

Sentry.io Module for SailCMS

1.0.7(2y ago)067MITPHPPHP &gt;=8.1

Since Mar 6Pushed 2y agoCompare

[ Source](https://github.com/LeeroyLabs/sail-sentryio)[ Packagist](https://packagist.org/packages/leeroy/sail-sentryio)[ RSS](/packages/leeroy-sail-sentryio/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (9)Used By (0)

Sentry.io Module for SailCMS
============================

[](#sentryio-module-for-sailcms)

This is the official Sentry.io package for SailCMS. Sentry.io is a great application performance and issue tracking service.

Installing
----------

[](#installing)

```
php sail install:official leeroy/sail-sentryio
```

This will install the package using composer and then update your composer file to autoload the package.

If you wish to install it manually, you and perform the following

```
composer require leeroy/sail-sentryio
```

After that, you can add `Leeroy\\Sentry` to the modules section of the sailcms property of your composer.json file. It should look something like this:

```
"sailcms": {
  "containers": ["Spec"],
  "modules": [
    "Leeroy\\SentryIO"
  ],
  "search": {}
}
```

Configuration
-------------

[](#configuration)

When installed, you need to add the following to your `.env` file.

```
SENTRY_DSN="https://xxxxxxxxxxxxx.ingest.sentry.io/xxxxxxxxxxxxxx"
SENTRY_ORG="yourProjectOrOrganization"

```

Using
-----

[](#using)

Activating the package is automatic. The only this you can use afterwards is custom exception handling.

Here are the 3 available methods to that.

### capture

[](#capture)

This captures the exception and nothing more.

```
try {
    //...
} catch (Exception $e) {
    Leeroy\Sentry::capture($e);
}
```

### captureWithContext

[](#capturewithcontext)

This is a more advance use than capture. With this, you can capture the exception, add context and tags for it and a custom message to display in sentry's UI.

```
try {
    //...
} catch (Exception $e) {
    Leeroy\Sentry::capture(
        $e,
        'yourContextName',
        ['your' => 'context data'], // don't add too much data
        ['tag1', 'tag2'],
        'custom message!'
    );
}
```

### captureLastError

[](#capturelasterror)

This captures the last error and sends it to Sentry.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~27 days

Recently: every ~48 days

Total

8

Last Release

968d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92767cd5e1ad8cc0aab1bd087488a7356b1d40a37eb17063d023cf3192e5fa78?d=identicon)[Leeroy Digital Agency](/maintainers/Leeroy%20Digital%20Agency)

---

Top Contributors

[![marcLeeroy](https://avatars.githubusercontent.com/u/59919105?v=4)](https://github.com/marcLeeroy "marcLeeroy (15 commits)")

### Embed Badge

![Health badge](/badges/leeroy-sail-sentryio/health.svg)

```
[![Health](https://phpackages.com/badges/leeroy-sail-sentryio/health.svg)](https://phpackages.com/packages/leeroy-sail-sentryio)
```

###  Alternatives

[notamedia/yii2-sentry

Yii2 logger for Sentry

1272.0M2](/packages/notamedia-yii2-sentry)[phptek/sentry

Sentry.io integration for SilverStripe. Binds Sentry.io to SilverStripe's error &amp; exception handling subsystem.

15203.5k3](/packages/phptek-sentry)[helhum/sentry-typo3

Sentry Integration for TYPO3

1833.5k](/packages/helhum-sentry-typo3)[minbaby/hyperf-sentry

1926.7k](/packages/minbaby-hyperf-sentry)[webpractik/sentry

Module sending logs to sentry

208.8k](/packages/webpractik-sentry)

PHPackages © 2026

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