PHPackages                             wyox/laravel-gitlab-reporter - 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. wyox/laravel-gitlab-reporter

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

wyox/laravel-gitlab-reporter
============================

Creates Gitlab Issues when Exceptions are thrown

2.1.1(7mo ago)95.9k1MITPHPPHP &gt;=8.1

Since Jul 4Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/Wyox/laravel-gitlab-reporter)[ Packagist](https://packagist.org/packages/wyox/laravel-gitlab-reporter)[ RSS](/packages/wyox-laravel-gitlab-reporter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (20)Used By (0)

Laravel Gitlab Report
=====================

[](#laravel-gitlab-report)

Create issues for Exceptions that happen on your servers.

This package will create issues in your Gitlab project if Exceptions occur and will post some more debug information to the issue to help you solve problems.

This package will contact your Gitlab server and checks if an exception has occurred before based on a generated identifier hash in the issue description. Don't remove this line in the description as it will be the only way for this package to validate if an exception occurred before.

Gitlab version 9 or higher required.

Installation
============

[](#installation)

Install with composer

```
composer require wyox/laravel-gitlab-reporter
```

To use the Gitlab reporter you need to do the following with Laravel 11

Open your `bootstrap/app.php` and add the code shown below that is between the comment to the withExceptions closure

```
    ->withExceptions(function (Exceptions $exceptions) {
        // ADD below
        $exceptions->report(function(\Throwable $e){
            if (app()->bound('gitlab.report')) {
                app('gitlab.report')->report($e);
            }
        });
        // ADD Above
    })
```

For Laravel 9, 10 use you should change the following in your `app/Exceptions/Handler.php` file in your Laravel project

```
public function register()
{
    $this->reportable(function (Throwable $e) {
        if (app()->bound('gitlab.report') && $this->shouldReport($e)) {
            app('gitlab.report')->report($e);
        }
    });
}
```

Now setup your .env file to include the following variables:

```
GITLAB_REPORT_URL=https://gitlab.com/
GITLAB_REPORT_TOKEN=
GITLAB_REPORT_PROJECT_ID=
GITLAB_REPORT_LABELS=
GITLAB_USE_CACHE=true

```

I would suggest making a separate user account for the reporter and only let it access Issues and allow it for issue creation. This way you can ensure if your server or code gets compromised you won't give full access to the server

To retrieve an access token go to your gitlab server to `profile/personal_access_tokens` and generate a token for using the API

For your Project ID you need to go to your project -&gt; Settings -&gt; General -&gt; General Project settings. There should be a box with Project ID

Adding labels to issues
=======================

[](#adding-labels-to-issues)

Adding labels to newly created issues is easy, just add a comma-separated list to `GITLAB_REPORT_LABELS=`

```
GITLAB_REPORT_LABELS=bug,critical

```

If the labels don't exist in Gitlab they will be automatically created.

Ignoring certain exceptions
===========================

[](#ignoring-certain-exceptions)

Make sure you publish the config as setting exceptions is not possible using an .env file

```
php artisan vendor:publish --tag=gitlab-report
```

A file called gitlab-report.php will be created there and you can change settings there. A couple of exceptions have been added by default

Hiding fields in reports
========================

[](#hiding-fields-in-reports)

In some cases you don't want reports to contain passwords of your clients. You can extend or replace values in the configuration file to include more fields that shouldn't show up in a report. All these fields will be replaced with \[redacted\]. Fields that are filled with null will also be replaced with \[redacted\]

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance64

Regular maintenance activity

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

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

Recently: every ~433 days

Total

19

Last Release

217d ago

Major Versions

0.0.9 → 1.0.02020-02-03

1.2.0 → 2.0.02024-06-17

PHP version history (5 changes)v0.0.2PHP &gt;=7.0

1.0.0PHP &gt;=7.1

1.2.0PHP &gt;=7.2

2.0.0PHP &gt;=8.0

2.1.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4883983?v=4)[Ivo de Bruijn](/maintainers/wyox)[@Wyox](https://github.com/Wyox)

---

Top Contributors

[![Wyox](https://avatars.githubusercontent.com/u/4883983?v=4)](https://github.com/Wyox "Wyox (67 commits)")

---

Tags

error-reportinggitlab

### Embed Badge

![Health badge](/badges/wyox-laravel-gitlab-reporter/health.svg)

```
[![Health](https://phpackages.com/badges/wyox-laravel-gitlab-reporter/health.svg)](https://phpackages.com/packages/wyox-laravel-gitlab-reporter)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299549.3k1](/packages/larabug-larabug)[gluedev/laravel-stackdriver

Enables logging, tracing and error reporting to Google Stackdriver for the Laravel framework

4865.6k](/packages/gluedev-laravel-stackdriver)[statamic-rad-pack/meilisearch

meilisearch search driver for Statamic

1661.7k](/packages/statamic-rad-pack-meilisearch)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

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