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
Requires
- php: ^8.2
- illuminate/contracts: ^11.0||^12.0
- illuminate/http: ^11.0||^12.0
- illuminate/support: ^11.0||^12.0
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 |