Download the PHP package errorvault/laravel without Composer
On this page you can find all versions of the php package errorvault/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download errorvault/laravel
More information about errorvault/laravel
Files in errorvault/laravel
Package laravel
Short Description ErrorVault error logging package for Laravel applications
License MIT
Informations about the package laravel
ErrorVault Laravel Package
Send PHP exceptions to your ErrorVault dashboard for centralized error monitoring with automatic health monitoring and reliability features.
Installation
Configuration
Publish the config file:
Add these environment variables to your .env file:
Usage
Once configured, exceptions are automatically reported to ErrorVault. You can also manually report errors:
Verify Connection
Get Statistics
Reliability Features (v1.3.0+)
Automatic Heartbeat
The package automatically sends a lightweight ping every 5 minutes to keep your site's last_seen_at updated in the portal. This prevents your site from appearing offline.
Connection Failure Tracking
All API connection failures are automatically logged with:
- Timestamp and error message
- Consecutive failure counter
- Last 20 failures stored
- Admin notification after 5 consecutive failures
Artisan Commands
Test Connection
Tests connectivity to the ErrorVault portal and displays detailed results.
View Diagnostics
Displays comprehensive diagnostics including:
- Configuration status
- Health monitoring settings
- Connection failure history
- Scheduled task information
Clear Failure Logs
Clears all connection failure logs.
Send Health Report
Manually trigger a health report to the portal.
Programmatic Access
Health Monitoring
Enable comprehensive server health monitoring:
Health monitoring tracks:
- CPU load and usage
- Memory consumption
- Request rates and traffic spikes
- Disk space
- Potential DDoS attacks
Reports are automatically sent every 5 minutes (configurable) and alerts are triggered when thresholds are exceeded.
Configuration Options
Basic Options
| Option | Description | Default |
|---|---|---|
enabled |
Enable/disable reporting | false |
api_endpoint |
Your ErrorVault API endpoint | '' |
api_token |
Your site's API token | '' |
send_immediately |
Send errors immediately vs batch | true |
ignore |
Exception classes to ignore | See config |
ignore_patterns |
Message patterns to ignore | [] |
severity_map |
Map exceptions to severities | [] |
Health Monitoring Options
| Option | Description | Default |
|---|---|---|
health_monitoring.enabled |
Enable health monitoring | false |
health_monitoring.cpu_load_threshold |
CPU load alert threshold (%) | 80 |
health_monitoring.memory_threshold |
Memory usage alert threshold (%) | 80 |
health_monitoring.request_rate_threshold |
Request rate alert (req/min) | 1000 |
health_monitoring.request_spike_multiplier |
Traffic spike multiplier | 5 |
health_monitoring.alert_cooldown |
Alert cooldown (minutes) | 15 |
health_monitoring.report_interval |
Report interval (minutes) | 5 |
health_monitoring.disk_threshold |
Disk usage alert threshold (%) | 90 |
Ignoring Exceptions
Add exceptions to the ignore array in config/errorvault.php:
Or use patterns to ignore by message content:
Scheduled Tasks
The package automatically registers the following scheduled tasks:
- Heartbeat (every 5 minutes) - Keeps site active in portal
- Health Report (configurable, default 5 minutes) - Sends health metrics
Ensure your Laravel scheduler is running:
Or use Laravel's queue worker in production.
Version History
- 1.3.0 - Added heartbeat/ping system, connection failure tracking, diagnostics commands, and reliability improvements
- 1.2.0 - Added comprehensive server health monitoring
- 1.1.0 - Enhanced error context and server information
- 1.0.0 - Initial release
License
MIT
All versions of laravel with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0