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

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

xolvio/laravel-gitlab-reporter
==============================

GitLab error reporter for Laravel 5

0.1(7y ago)0279MITPHPPHP &gt;=7.0

Since Jul 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/AnwarElbo/laravel-gitlab-reporter)[ Packagist](https://packagist.org/packages/xolvio/laravel-gitlab-reporter)[ RSS](/packages/xolvio-laravel-gitlab-reporter/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)Dependencies (9)Versions (12)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 Xolvio/laravel-gitlab-reporter
```

To use the Gitlab reporter you should change the following in your `app/Exceptions/Handler.php` file in your Laravel project

```
public function report(Exception $exception)
{
    // Ignore Gitlab Report in code coverage
    // @codeCoverageIgnoreStart
    if(env('APP_ENV') == 'production' && $this->shouldReport($exception)){
        app('gitlab.report')->report($exception);
    }
    // @codeCoverageIgnoreEnd

    parent::report($exception);
}
```

To test if your connection and settings work you could temporarily remove the `env('APP_ENV')` check, run the settings locally and see if everything works

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=

```

I would suggest making a seperate 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

Redacting fields in reports
===========================

[](#redacting-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

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69% 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 ~35 days

Recently: every ~57 days

Total

11

Last Release

2569d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1496126df1386620d4a1f884c2512fd9ea21a58e4eb606fee46ae6e10d345d92?d=identicon)[AnwarElbo](/maintainers/AnwarElbo)

---

Top Contributors

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

---

Tags

error-reportinggitlab

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M342](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M125](/packages/roots-acorn)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.0k](/packages/larastan-larastan)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M183](/packages/laravel-ai)[spatie/laravel-flare

Send Laravel errors to Flare

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

PHPackages © 2026

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