PHPackages                             devdavido/laravel-reporto - 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. devdavido/laravel-reporto

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

devdavido/laravel-reporto
=========================

Log browser errors to the server using W3C Reporting API

1.10(2mo ago)117301MITPHPPHP ^8.0CI failing

Since Sep 8Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/DevDavido/laravel-reporto)[ Packagist](https://packagist.org/packages/devdavido/laravel-reporto)[ Fund](https://www.buymeacoffee.com/devdavido)[ RSS](/packages/devdavido-laravel-reporto/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (8)Versions (13)Used By (0)

Reporto: Report browser errors to the server
============================================

[](#reporto-report-browser-errors-to-the-server)

[![Latest Version](https://camo.githubusercontent.com/1a1b587f7071ad609f95acbc6b0ae07a016c5a9f31111c5562501d0c640ae327/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f44657644617669646f2f6c61726176656c2d7265706f72746f2e7376673f7374796c653d666c61742d737175617265)](https://github.com/DevDavido/laravel-reporto/releases)[![Build Status](https://camo.githubusercontent.com/8bed20d32572bf719b7561214aca5260b70bd978b34f5f65f559132aa59e786e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f44657644617669646f2f6c61726176656c2d7265706f72746f2f74657374732e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/DevDavido/laravel-reporto/actions/workflows/tests.yml)[![Code Coverage](https://camo.githubusercontent.com/2d3868ff12545400d3d6199a5f81d55336a3e6f27e3c51ffd5be50a5504f779b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f44657644617669646f2f6c61726176656c2d7265706f72746f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/DevDavido/laravel-reporto/)[![Total Downloads](https://camo.githubusercontent.com/4eb61529264a37092d45c574179240cd770bbc105457779040dfc1a0efe28c9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f44657644617669646f2f6c61726176656c2d7265706f72746f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/DevDavido/laravel-reporto)

This package makes use of the [W3C Reporting API](https://w3c.github.io/reporting/) and provides an easy plug-and-play package for your existing project. It will automatically add the necessary Report HTTP headers and log all configured browser errors to your Laravel backend.

Documentation
-------------

[](#documentation)

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving this package? Feel free to [create an issue on GitHub](https://github.com/devdavido/laravel-reporto/issues), we'll try to address it as soon as possible.

If you've found a bug regarding security please mail github{at}diskoboss{døt}de instead of using the issue tracker.

Minimum requirements
--------------------

[](#minimum-requirements)

- PHP 8.0+
- Laravel 9+

For support of older PHP / Laravel versions, check out previous releases of this package.

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

[](#installation)

You can install this package via composer using this command:

```
composer require devdavido/laravel-reporto
```

The package will automatically register itself and add a `Report-To` header to your `web` routes. Each error or violation will be logged to the backend.

You can publish the config-file with:

```
php artisan vendor:publish --provider="DevDavido\Reporto\ReportoServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
    /*
     * Use this setting to enable the reporting API header
     */
    'enabled' => env('REPORTING_API_ENABLED', true),

    /*
     * Enables the reporting API for all subdomains
     */
    'include_subdomains' => env('REPORTING_API_INCLUDE_SUBDOMAINS', false),

    /*
     * Exclude certain source files from being logged
     */
    'exclude_source_files' => env('REPORTING_API_EXCLUDE_SOURCE_FILES', ['chrome-extension://*']),

    /*
     * Defines cached lifetime of all endpoint in seconds (86400s = 1 day)
     */
    'endpoint_max_age' => env('REPORTING_API_MAX_AGE', 86400),

    /*
     * Which types of browser errors to report
     * @see https://w3c.github.io/reporting/
     */
    'groups' => [
        'default',
        'csp-endpoint',
        'network-errors'
    ],

    /*
     * If you want to set the logging route prefix
     */
    'route_prefix' => 'log'
];
```

Support me
----------

[](#support-me)

If you installed the package and it was useful for you or your business, please don't hesitate to make a donation. Thank you!

[![Buy me a coffee](https://private-user-images.githubusercontent.com/997605/292490415-b7e908c3-0407-4b17-83b7-94b760a4c653.svg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI3NDg2NDAsIm5iZiI6MTc4Mjc0ODM0MCwicGF0aCI6Ii85OTc2MDUvMjkyNDkwNDE1LWI3ZTkwOGMzLTA0MDctNGIxNy04M2I3LTk0Yjc2MGE0YzY1My5zdmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNjI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDYyOVQxNTUyMjBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02NDZjNzYwNzQzNWM3YWFhMzgwYjY4ZjgyY2E0YjNjNWQ4ZGU3ODAwNmQ4M2Q0Yzg5MmFkZjhhNjA2MGE5NDVhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZzdmclMkJ4bWwifQ.aHa7EXNN-4_etELsyl4C8MLT96W2gJnOpHz-RM8QSpg)](https://www.buymeacoffee.com/devdavido)

Testing
-------

[](#testing)

You can run the tests with:

```
vendor/bin/phpunit
```

Ideas / ToDo
------------

[](#ideas--todo)

- Daily/weekly reports via email
- Multiple endpoints
- More unit tests

Changelog
---------

[](#changelog)

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

Security
--------

[](#security)

If you discover any security related issues, please email github{at}diskoboss{døt}de instead of using the issue tracker.

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze) for letting me use his packages as boilerplate.

License
-------

[](#license)

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

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance83

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 89.6% 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 ~251 days

Recently: every ~475 days

Total

12

Last Release

85d ago

PHP version history (5 changes)1.0PHP ^7.0

1.4PHP ^7.2

1.5PHP ^7.3

1.6PHP &gt;=7.3

1.7PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/997605?v=4)[David B.](/maintainers/DevDavido)[@DevDavido](https://github.com/DevDavido)

---

Top Contributors

[![DevDavido](https://avatars.githubusercontent.com/u/997605?v=4)](https://github.com/DevDavido "DevDavido (43 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")

---

Tags

backendbrowserbrowser-interventionscrash-reportcspcsp-violationdeprecationsfeature-policyfrontendlaravelnetwork-errorreport-apibrowserlaravelcspfrontendfeature-policyreport-apideprecationsbrowser-interventionsnetwork-errorcrash-reportlaravel-reporto

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devdavido-laravel-reporto/health.svg)

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

###  Alternatives

[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

592.4M8](/packages/open-telemetry-opentelemetry-auto-laravel)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14844.4k1](/packages/guanguans-laravel-exception-notify)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)

PHPackages © 2026

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