supernet/laravel-client

Laravel client package for Supernet error tracking

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/supernet/laravel-client

v1.0.0 2026-02-21 11:56 UTC

This package is auto-updated.

Last update: 2026-02-21 12:16:37 UTC


README

A Laravel package that automatically captures and sends exceptions to your Supernet error tracking project.

Installation

composer require supernet/laravel-client

Configuration

Publish the configuration file:

php artisan vendor:publish --tag="supernet-client-config"

Add your API key and endpoint to your .env file:

SUPERNET_API_KEY=your-api-key-here
SUPERNET_API_URL=https://supernet.on-forge.com/api/v1/errors

Usage

Once installed, the package automatically captures all exceptions and sends them to your Supernet project. No additional code is needed.

Manual Reporting

You can also manually report exceptions:

use Supernet\Client\Facades\SupernetClient;

try {
    // risky operation
} catch (\Throwable $e) {
    SupernetClient::captureException($e);
}

Configuration Options

Option Default Description
api_key null Your Supernet project API key
api_url https://supernet.on-forge.com/api/v1/errors API endpoint URL
environments ['production', 'staging'] Only report from these environments (['*'] for all)
report_quietly true Silently catch reporting failures