PHPackages                             tvup/laravel-fejlvarp - 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. tvup/laravel-fejlvarp

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

tvup/laravel-fejlvarp
=====================

Simple incident logger for Laravel

v12.0.0(1y ago)19.7k↓33.3%[1 issues](https://github.com/tvup/laravel-fejlvarp/issues)[4 PRs](https://github.com/tvup/laravel-fejlvarp/pulls)MITPHPPHP ^8.0.2CI passing

Since Mar 14Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/tvup/laravel-fejlvarp)[ Packagist](https://packagist.org/packages/tvup/laravel-fejlvarp)[ Docs](https://github.com/tvup/laravel-fejlvarp)[ GitHub Sponsors](https://github.com/tvup)[ RSS](/packages/tvup-laravel-fejlvarp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (61)Used By (0)

Laravel Fejlvarp: Your Go-To Incident Logger
============================================

[](#laravel-fejlvarp-your-go-to-incident-logger)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0943a77488fc76a8efdd5da117fc8f7ea8ff89c68846bb3ec4d0b1ca250d30f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f747675702f6c61726176656c2d66656a6c766172702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tvup/laravel-fejlvarp)[![GitHub Tests Action Status](https://camo.githubusercontent.com/cc91b6cd6335364f4da8c583d2d95121136cf4fa0a0e608cb3f70ad4d528e4ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f747675702f6c61726176656c2d66656a6c766172702f72756e2d74657374732e796d6c3f6272616e63683d6d6173746572266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/tvup/laravel-fejlvarp/actions?query=workflow%3Arun-tests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/fc94a5e69d88e574091c3ea407a5f4ed9c6b8e19501f87c2dffc0e116817c959/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f747675702f6c61726176656c2d66656a6c766172702f7068702d63732d66697865722e796d6c3f6272616e63683d6d6173746572266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/tvup/laravel-fejlvarp/actions?query=workflow%3A%22Check+&20+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/694e660b8418e10dc7a65e8e462fbff29c9355e84aade59b4c9b355a21fec27c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747675702f6c61726176656c2d66656a6c766172702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tvup/laravel-fejlvarp)

Laravel Fejlvarp is a robust incident logger tailored for Laravel applications. Designed to streamline error tracking, it ensures that you're always in the loop about runtime errors, allowing for swift resolution.

**Why Choose Laravel Fejlvarp?**

- **Instant Notifications:** Get notified immediately when an incident occurs or is reopened via email or pushover.net.
- **Intuitive Interface:** A user-friendly web interface lets you delve deep into debug information about each incident.
- **Seamless Integration:** Designed to fit right into your Laravel application without any hassle.

Incidents overviewIncident detail view[![](https://user-images.githubusercontent.com/4526352/224930377-17f8889c-99fa-4ca0-a049-d182f6c3bbe0.png)](https://user-images.githubusercontent.com/4526352/224930377-17f8889c-99fa-4ca0-a049-d182f6c3bbe0.png)[![](https://user-images.githubusercontent.com/4526352/224930490-f0607982-737a-414d-b8b4-95de3c36f790.png)](https://user-images.githubusercontent.com/4526352/224930490-f0607982-737a-414d-b8b4-95de3c36f790.png)Contributors
------------

[](#contributors)

This package is an enchancement of [Fejlvarp](https://github.com/troelskn/fejlvarp) by [troelskn](https://github.com/troelskn). Thanks for letting me envolve on the idea to letting it become a package for laravel.

[negoziator](https://github.com/negoziator) has also been a great help in the process of making this package.

Supported Versions
------------------

[](#supported-versions)

This project supports a range of PHP and Laravel versions, tested across multiple operating systems. Below are the details of the supported versions:

### PHP and Laravel Compatibility

[](#php-and-laravel-compatibility)

Laravel VersionPHP VersionsRequired `larastan/larastan`Required `orchestra/testbench`Required `orchestra/testbench-core`^9.478.0.2, 8.1, 8.2, 8.32.4.07.\*7.\*10.\*8.1, 8.2, 8.32.4.08.\*8.\*11.\*8.2, 8.3, 8.43.\*^9.19.1.412.\*8.2, 8.3, 8.43.\*^10.010.0.0### Operating Systems

[](#operating-systems)

The project is tested on the following operating systems:

- Ubuntu (latest)
- Windows (latest)

### Testing Stability

[](#testing-stability)

The project is tested under different dependency scenarios to ensure robust compatibility:

- **Prefer Lowest:** Ensuring compatibility with the oldest versions of dependencies.
- **Prefer Stable:** Ensuring compatibility with the latest stable versions of dependencies.

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

[](#installation)

You can install the package via composer:

```
composer require tvup/laravel-fejlvarp
```

Default route to list of incidents will be

**Important! Make sure to protect this route with (admin) authentication**

You can enjoy the convenience of letteing the package install itsleft

```
php artisan fejlvarp:install
```

It will also ask you if you want to create (migrate) the table that will be storing the incidents

Instead of doing the above, or just if you are curious, you publish the files manually by doing the following:

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="fejlvarp-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="fejlvarp-config"
```

This is the contents of the published config file:

```
return [
    'ipstack' => ['access_key' => env('INCIDENT_MANAGER_IPSTACK_ACCESS_KEY')],

    'pushover' => [
        'userkey' => env('INCIDENT_MANAGER_PUSHOVER_USER_KEY'),
        'apitoken' => env('INCIDENT_MANAGER_PUSHOVER_API_TOKEN'),
    ],

    'slack' => [
        'webhook_url' => env('INCIDENT_MANAGER_SLACK_WEBHOOK_URL'),
    ],

    'mail_recipient' => env('INCIDENT_MANAGER_EMAIL_RECIPIENT'),
];
```

ipstack is used to get info about ip-addresses - you can retrieve an access key here: Results from ipstack are cached, so it won't drain the free lookups right away.

Pushover/slack/mail is used to inform about new og reopened incidents

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="fejlvarp-views"
```

You can replace your exception-handler Replace

```
php artisan vendor:publish --tag=fejlvarp-provider
```

remember to make sure that the serivce-provider is correctly installed

You can have other applications report to the one you install it on, get inspiration from /src/Exceptions/LaravelFejlvarpExceptionHandler.php

```
$hash = config('app.name')
            . $exception->getMessage()
            . preg_replace('~revisions/[0-9]{14}/~', '--', $exception->getFile())
            . $exception->getLine();
        $user = request()->user();

        $data = [
            'hash' => md5($hash),
            'subject' => $exception->getMessage() ? $exception->getMessage() : 'Subject is empty',
            'data' => json_encode([
                'application' => config('app.name'),
                'error' => [
                    'type' => get_class($exception),
                    'message' => $exception->getMessage(),
                    'code' => $exception->getCode(),
                    'file' => $exception->getFile(),
                    'line' => $exception->getLine(),
                    'trace' => $exception->getTraceAsString(),
                ],
                'environment' => [
                    'GET' => $_GET ?: null,
                    'POST' => $_POST ?: null,
                    'SERVER' => $_SERVER ?: null,
                    'SESSION' => request()->hasSession() ? request()->session()->all() : null,
                ],
                'application_data' => $user ? [
                    'user' => $user->toArray(),
                ] : null,
                'queries' => app(Listener::class)->queries(),
            ], JSON_THROW_ON_ERROR),
        ];
        $request = Request::create(
            '/api/incidents',
            'POST',
            $data,
            [],
            [],
            ['CONTENT_TYPE'=>'application/x-www-form-urlencoded']
        );
        app()->handle($request);
```

Testing
-------

[](#testing)

```
composer test
```

Local development on laravel-fejlvarp through laravel application
-----------------------------------------------------------------

[](#local-development-on-laravel-fejlvarp-through-laravel-application)

**These instructions apply to your laravel application where laravel-fejlvarp is installed as a package**

- Add a volume to your docker-compose.yml

```
            - '../local-fejlvarp-folder-relative-to-laravel-folder:/var/www/packages/laravel-fejlvarp'
```

(right below these lines)

```
        volumes:
          - '.:/var/www/html'
```

- Add repository to composer

```
        {
            "type": "path",
            "url": "../packages/laravel-fejlvarp",
            "symlink": true
        }

```

- Use local package

```
        "tvup/laravel-fejlvarp": "@dev"

```

```
sail composer update tvup/laravel-fejlvarp
```

Now you don't need to run composer update each time you change something in the package. (Remember to set back yml- and composer-file before pushing anything)

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Torben Evald Hansen](https://github.com/tvup)
- [Lars Christian Schou](https://github.com/negoziator)
- [Troels Knak-Nielsen](https://github.com/troelskn)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance49

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 93% 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 ~20 days

Total

39

Last Release

392d ago

Major Versions

v9.1.5 → v10.2.52023-08-02

v10.2.6 → v11.0.02024-01-20

v11.1.9 → v12.0.02025-04-22

PHP version history (3 changes)v9.0.0PHP ^8.1

v10.2.6PHP \*

v11.1.2PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf815233f76ab55016ae90a8972b73dad594f73fa5f791d4c9cba6c4e94797bb?d=identicon)[tvupper](/maintainers/tvupper)

---

Top Contributors

[![tvup](https://avatars.githubusercontent.com/u/4526352?v=4)](https://github.com/tvup "tvup (211 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (10 commits)")[![negoziator](https://avatars.githubusercontent.com/u/2228675?v=4)](https://github.com/negoziator "negoziator (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

exceptionsfejlvarpincidentslaravellaravellaravelfejlvarplaravel-fejlvarpfejlvarptroelskntvupnegoziator

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/tvup-laravel-fejlvarp/health.svg)

```
[![Health](https://phpackages.com/badges/tvup-laravel-fejlvarp/health.svg)](https://phpackages.com/packages/tvup-laravel-fejlvarp)
```

###  Alternatives

[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[spatie/laravel-slack-alerts

Send a message to Slack

3212.6M4](/packages/spatie-laravel-slack-alerts)[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)[yoeriboven/laravel-log-db

A database driver for logging with Laravel

58156.5k](/packages/yoeriboven-laravel-log-db)[spatie/laravel-error-share

Share your Laravel errors to Flare

43965.6k3](/packages/spatie-laravel-error-share)

PHPackages © 2026

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