PHPackages                             nietonfir/raygun-bundle - 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. nietonfir/raygun-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

nietonfir/raygun-bundle
=======================

Symfony2 bundle for integrating mindscape/raygun4php

v0.2.0(9y ago)15.7k2[1 issues](https://github.com/nietonfir/RaygunBundle/issues)[1 PRs](https://github.com/nietonfir/RaygunBundle/pulls)MITPHPPHP &gt;=5.3.9

Since Jan 27Pushed 8y ago2 watchersCompare

[ Source](https://github.com/nietonfir/RaygunBundle)[ Packagist](https://packagist.org/packages/nietonfir/raygun-bundle)[ Docs](https://github.com/Nietonfir/RaygunBundle)[ RSS](/packages/nietonfir-raygun-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (10)Used By (0)

RaygunBundle
============

[](#raygunbundle)

[Raygun4PHP](https://github.com/MindscapeHQ/raygun4php) is a [Raygun.io](https://raygun.io) provider for PHP 5.3+. [Raygun4js](https://github.com/MindscapeHQ/raygun4js) is a is a [Raygun.io](https://raygun.io) plugin for JavaScript. This bundle registers the library with the framework and provides a twig template for the plugin.

[![Latest Stable Version](https://camo.githubusercontent.com/07b71c5d615357d88bdd8433233e7574a64064665d82a7c234581c6d19a8b6bf/68747470733a2f2f706f7365722e707567782e6f72672f6e6965746f6e6669722f72617967756e2d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/nietonfir/raygun-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/81851d1f69b8057dfacdbc6b306396cfa8aed0fc478553d1ee05e981d120746d/68747470733a2f2f706f7365722e707567782e6f72672f6e6965746f6e6669722f72617967756e2d62756e646c652f762f756e737461626c652e737667)](https://packagist.org/packages/nietonfir/raygun-bundle) [![License](https://camo.githubusercontent.com/1e553f51f954e8a6df53ea95fbe24718db8ccb172d949933ba4ebd1aa13eb56b/68747470733a2f2f706f7365722e707567782e6f72672f6e6965746f6e6669722f72617967756e2d62756e646c652f6c6963656e73652e737667)](https://github.com/Nietonfir/RaygunBundle/blob/master/LICENSE)

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

[](#installation)

Install the latest version with

```
$ composer require nietonfir/raygun-bundle

```

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

[](#configuration)

Add your raygun api-key in parameters.yml:

```
# app/config/parameters.yml
parameters:
    […]
    raygun_api_key:
```

Update `config.yml` with the following configuration:

```
# app/config/config.yml
nietonfir_raygun:
    api_key: %raygun_api_key%
```

Enable the bundle:

```
// app/AppKernel.php
$bundles = [
    […]
    new Nietonfir\RaygunBundle\NietonfirRaygunBundle(),
];
```

Basic Usage
-----------

[](#basic-usage)

Register the raygun monolog handler in `config_prod.yml` as the first monolog handler.

```
# app/config/config_prod.yaml
monolog:
    handlers:
        raygun:
            type: service
            id:   raygun.handler
        main:
            type:         fingers_crossed
            action_level: error
            handler:      nested
```

To use the [JavaScript client](https://raygun.io/docs/languages/javascript) include the bundled views in your template at their designated places according to the raygun documentation. [`NietonfirRaygunBundle:Static:raygun-js.html.twig`](Resources/views/Static/raygun-js.html.twig) provides the javascript client and [`NietonfirRaygunBundle::setup.html.twig`](Resources/views/setup.html.twig) configures it, e.g.:

```
{# snip #}
{% include 'NietonfirRaygunBundle:Static:raygun-js.html.twig' %}

{# snip #}
{% include 'NietonfirRaygunBundle::setup.html.twig' %}

```

If you wish to override any part of the templates you can use the default Symfony mechanisms. A global twig parameter (`raygun_api_key`) is exposed by a custom `Twig_Extension` that provides the API key. Raygun pulse can be enabled by either setting or passing a truthy variable named `enable_pulse` to the template:

```
{% include 'NietonfirRaygunBundle::setup.html.twig' with {'enable_pulse': true} only %}
```

Configuration Reference
-----------------------

[](#configuration-reference)

```
# app/config/config.yml
nietonfir_raygun:
    api_key: %raygun_api_key% # Your Raygun API key, available under "Application Settings" in your Raygun account.
    async: true               # Sets the [async configuration option](https://github.com/MindscapeHQ/raygun4php#sending-method---asyncsync) on the Raygun client.
    debug_mode: false         # Sets the [debug configuration option](https://github.com/MindscapeHQ/raygun4php#debug-mode) on the Raygun client.
    ignore_404: false         # Whether to send 404 exceptions (NotFoundHttpException) to Raygun
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~40 days

Recently: every ~69 days

Total

8

Last Release

3475d ago

PHP version history (2 changes)v0.0.1PHP &gt;=5.5.9

v0.0.6PHP &gt;=5.3.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f23105f6a6d70c794497723e5ee85f17d8c7025f3b5195369e8e22053b6459b?d=identicon)[nietonfir](/maintainers/nietonfir)

---

Top Contributors

[![emarref](https://avatars.githubusercontent.com/u/556594?v=4)](https://github.com/emarref "emarref (9 commits)")[![mbunzel](https://avatars.githubusercontent.com/u/974429?v=4)](https://github.com/mbunzel "mbunzel (2 commits)")[![nietonfir](https://avatars.githubusercontent.com/u/438460?v=4)](https://github.com/nietonfir "nietonfir (1 commits)")

---

Tags

loggingerrorsexceptionsraygun

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nietonfir-raygun-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/nietonfir-raygun-bundle/health.svg)](https://phpackages.com/packages/nietonfir-raygun-bundle)
```

###  Alternatives

[sentry/sentry-symfony

Symfony integration for Sentry (http://getsentry.com)

73761.4M65](/packages/sentry-sentry-symfony)[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90234.6M36](/packages/bugsnag-bugsnag-laravel)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M81](/packages/rollbar-rollbar)[bugsnag/bugsnag-symfony

Official BugSnag notifier for Symfony applications.

453.0M3](/packages/bugsnag-bugsnag-symfony)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)

PHPackages © 2026

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