supernet/laravel-client
最新稳定版本:v1.0.0
Composer 安装命令:
composer require supernet/laravel-client
包简介
Laravel client package for Supernet error tracking
README 文档
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 |
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-21