PHPackages                             jcf/getsentry - 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. jcf/getsentry

Abandoned → [getsentry/sentry-laravel](/?search=getsentry%2Fsentry-laravel)Library[Logging &amp; Monitoring](/categories/logging)

jcf/getsentry
=============

Sentry Integration for Laravel 4

1.1.0(9y ago)32.3kMITPHPPHP &gt;=5.4.0

Since Sep 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jotafurtado/getsentry)[ Packagist](https://packagist.org/packages/jcf/getsentry)[ RSS](/packages/jcf-getsentry/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Sentry Integration for Laravel 4
================================

[](#sentry-integration-for-laravel-4)

Sentry (getsentry.com) and Laravel 4 integration. Automatically send Laravel log messages to Sentry. This package integrates Sentry and Laravel 4 in a super simple way. Let's see how it works.

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

[](#installation)

The package can be installed via [Composer](http://getcomposer.org) by requiring the `jcf/getsentry` package in your project's `composer.json`.

```
{
    "require": {
        "jcf/getsentry": "1.1.*"
    }
}
```

Then run a composer update

```
php composer.phar update
```

After updating composer, add the ServiceProvider to the providers array in app/config/app.php

```
'Jcf\Getsentry\GetsentryServiceProvider',
```

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

[](#configuration)

Run php artisan config:publish jcf/getsentry to publish the configuration file.

```
php artisan config:publish jcf/getsentry
```

Edit the configuration file at /app/config/packages/jcf/getsentry. You may also create environment specific configuration files for your package by placing them in app/config/packages/jcf/getsentry/dev by example.

### Options

[](#options)

Provide Sentry DSN of your project. You can grab this at Settings Tab / API Keys of your project on getsentry.com.

```
return array(

    'dsn' => 'https://1f68584cfb824d123432534ab452adb778:7e06629189c02355bd2b928881a4c1f1@app.getsentry.com/26241',
```

Then set the environments that should be reported to Sentry.

```
    'environments' => ['stagging', 'production'],
```

Set the log levels that should be reported to Sentry.

```
    'environments' => ['error', 'emergency', 'notice', 'info', 'debug'],
```

Set if Sentry Event ID should be saved in session. This is useful if you want to share the event ID with your users.

```
    'saveEventId' => true,
```

Usage
-----

[](#usage)

Automatically every message that will be logged by Laravel and that fits in rules of configuration will be sent to Sentry.

If you need, you may also trigger Laravel log mannualy and pass extra data to Sentry.

```
	// Debug with User and Extra Data
    \Log::debug('Debugging', [
	'user' => [
		'id' => 99,
		'email' => 'joao@3eengenharia.com.br',
		'data' =>[
			'Member Since' => '2011-09-07'
		]
	]
	, 'extra' => ['Ammount' => '142', 'Membership' => 'Activated']]
    );

    // Debug with User
    \Log::debug('Debug bug!', ['user' => 'jotafurtado']);

    // Info with User
    \Log::info('User has logged in.', ['user' => 'jotafurtado']);

    // Simple Error
    \Log::error('Image not saved.');
```

To retrieve event ID use the code:

```
 \Session::get('sentryEventId');

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

3538d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/780f9f462d79aec5189728479735d339b890a5db9d389f0b4ec6bb0627fd3ab7?d=identicon)[jotafurtado](/maintainers/jotafurtado)

---

Top Contributors

[![jotafurtado](https://avatars.githubusercontent.com/u/748350?v=4)](https://github.com/jotafurtado "jotafurtado (13 commits)")

### Embed Badge

![Health badge](/badges/jcf-getsentry/health.svg)

```
[![Health](https://phpackages.com/badges/jcf-getsentry/health.svg)](https://phpackages.com/packages/jcf-getsentry)
```

###  Alternatives

[sentry/sentry-laravel

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

1.3k127.1M203](/packages/sentry-sentry-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[spatie/laravel-flare

Send Laravel errors to Flare

111.4M7](/packages/spatie-laravel-flare)

PHPackages © 2026

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