PHPackages                             violet88/bugsnag-silverstripe - 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. violet88/bugsnag-silverstripe

ActiveSilverstripe-vendormodule

violet88/bugsnag-silverstripe
=============================

A module to use Bugsnag in SilverStripe projects.

v1.6.1(7mo ago)62.3kBSD-3-ClausePHPPHP ^7.4 || ^8.0 || ^8.3CI passing

Since Sep 19Pushed 7mo agoCompare

[ Source](https://github.com/Violet88github/silverstripe-bugsnag-module)[ Packagist](https://packagist.org/packages/violet88/bugsnag-silverstripe)[ RSS](/packages/violet88-bugsnag-silverstripe/feed)WikiDiscussions master Synced 1mo ago

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

Bugsnag module for Silverstripe
===============================

[](#bugsnag-module-for-silverstripe)

[![CI](https://github.com/Violet88github/silverstripe-bugsnag-module/actions/workflows/cicd.yml/badge.svg)](https://github.com/Violet88github/silverstripe-bugsnag-module/actions/workflows/cicd.yml)[![codecov.io](https://camo.githubusercontent.com/ecb62af104ac9b35c1925b06737636c80e4938b06adc71be9478f3a4b52f1380/68747470733a2f2f636f6465636f762e696f2f6769746875622f56696f6c657438386769746875622f73696c7665727374726970652d627567736e61672d6d6f64756c652f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/Violet88github/silverstripe-bugsnag-module?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fb60f447eeac89d7761950bf8c9965137d3de1139e62e6a22575f912c57b8163/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f56696f6c657438386769746875622f73696c7665727374726970652d627567736e61672d6d6f64756c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Violet88github/silverstripe-bugsnag-module/?branch=master)[![Build Status](https://camo.githubusercontent.com/defd2e36bdd2a194c0eb6ba96f86355046aa3c7a93d62a788a69f16d504168e5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f56696f6c657438386769746875622f73696c7665727374726970652d627567736e61672d6d6f64756c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Violet88github/silverstripe-bugsnag-module/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/9845f3d97f2d39c7303c63a48481f35113338681ed2c4e31eec68a58486f0694/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f56696f6c657438386769746875622f73696c7665727374726970652d627567736e61672d6d6f64756c652f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)

Requirements
------------

[](#requirements)

- SilverStripe ^4.0
- [silverstripe/framework](https://packagist.org/packages/silverstripe/framework)
- [bugsnag/bugsnag](https://packagist.org/packages/bugsnag/bugsnag)
- [guzzlehttp/guzzle](https://packagist.org/packages/guzzlehttp/guzzle)
- [silverstripe/admin](https://packagist.org/packages/silverstripe/admin)

Dev requirements
----------------

[](#dev-requirements)

- [phpunit/phpunit](https://packagist.org/packages/phpunit/phpunit)
- [squizlabs/php\_codesniffer](https://packagist.org/packages/squizlabs/php_codesniffer)

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

[](#installation)

To install run the following command

```
composer require violet88/bugsnag-silverstripe
```

**Note:** Make sure the required modules are installed before using the module.

License
-------

[](#license)

See [License](license.md)

Documentation
-------------

[](#documentation)

- [Documentation readme](docs/en/readme.md)

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

[](#configuration)

For base use, add the following to your .env file

**When running local, to prevent Bugsnag from being filled with errors, set BUGSNAG\_ACTIVE to false OR do not declare it. (If not declared messages will also not be sent to Bugsnag.**

```
BUGSNAG_API_KEY=
BUGSNAG_STANDARD_SEVERITY=
BUGSNAG_ACTIVE=
BUGSNAG_RELEASE_STAGE=
```

For using the BugsnagLogger as the standard error logger, add the following to your configuration yaml

```
SilverStripe\Core\Injector\Injector:
  Psr\Log\LoggerInterface:
    calls:
      BugsnagHandler: [pushHandler, ['%$BugsnagHandler']]
  BugsnagHandler:
    class: Violet88\BugsnagModule\BugsnagLogger
    constructor:
      - '%$Violet88\BugsnagModule\Bugsnag'
SilverStripe\SiteConfig\SiteConfig:
  extensions:
    - Violet88\BugsnagModule\BugsnagSiteConfigExtension
```

For using the CLI command to sent your current release revision to Bugsnag, add the following to your routes yaml

```
SilverStripe\Control\Director:
    rules:
        'bugsnag//build': 'Violet88\BugsnagModule\BugsnagController'
        'bugsnag//initial': 'Violet88\BugsnagModule\BugsnagController'
```

Basic usage
-----------

[](#basic-usage)

For sending a basic error to Bugsnag, use the following code

```
use Violet88\BugsnagModule\Bugsnag;
use Exception;
use SilverStripe\Core\Injector\Injector;

try{
    //do something
} catch (Exception $e) {
    $bugsnag = Injector::inst()->get(Bugsnag::class);
    $bugsnag->sendException($e);
}
```

Maintainers
-----------

[](#maintainers)

- Sven van der Zwet

Bugtracker
----------

[](#bugtracker)

Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique.

If the issue does look like a new bug:

- Create a new issue
- Choose the issue template for 'Bugs'
- Follow the instructions in the template

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.

Development and contribution
----------------------------

[](#development-and-contribution)

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

Feel free to join the community on slack: [Join Slack](https://join.slack.com/t/silverstripe-bugsnag/shared_invite/zt-1gprtht4j-RIY_QyhTTxJZliDRlBAS~Q)

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance62

Regular maintenance activity

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 92.4% 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 ~78 days

Recently: every ~135 days

Total

15

Last Release

230d ago

PHP version history (2 changes)v1.0PHP ^7.4 || ^8.0

v1.5PHP ^7.4 || ^8.0 || ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/2776eb19c4ec68ca7f7e0c587150379b72cdd2474703fe70dfb5b84c89b41c46?d=identicon)[JanSneeuw](/maintainers/JanSneeuw)

---

Top Contributors

[![JanSneeuw](https://avatars.githubusercontent.com/u/48092471?v=4)](https://github.com/JanSneeuw "JanSneeuw (110 commits)")[![RheimerViolet88](https://avatars.githubusercontent.com/u/105431098?v=4)](https://github.com/RheimerViolet88 "RheimerViolet88 (4 commits)")[![Svenodoculos](https://avatars.githubusercontent.com/u/10992746?v=4)](https://github.com/Svenodoculos "Svenodoculos (4 commits)")[![martinviolet88](https://avatars.githubusercontent.com/u/23486112?v=4)](https://github.com/martinviolet88 "martinviolet88 (1 commits)")

---

Tags

silverstripebugsnagcmsViolet88

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/violet88-bugsnag-silverstripe/health.svg)

```
[![Health](https://phpackages.com/badges/violet88-bugsnag-silverstripe/health.svg)](https://phpackages.com/packages/violet88-bugsnag-silverstripe)
```

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5163.4M1.3k](/packages/silverstripe-cms)

PHPackages © 2026

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