laravel/liferaft
Liferaft is a Laravel package that adds reliable background job and queue tooling, helping you run tasks safely with better control, monitoring, and recovery. Ideal for apps that need robust async processing and fewer failed or stuck jobs.
laravel/liferaft is a lightweight package designed to automatically collect and send bug reports (e.g., exceptions, errors) to Laravel’s error-tracking infrastructure. It is not a full-fledged monitoring solution (e.g., Sentry, Bugsnag) but rather a Laravel-specific telemetry tool for framework-level issues.App\Exceptions\Handler via middleware or service provider.config/liferaft.php).| Risk Area | Assessment | Mitigation Strategy |
|---|---|---|
| Data Privacy | Reports may include stack traces with sensitive context (e.g., routes, DB queries). | Configure ignored_exceptions, ignored_routes, and filter callbacks. |
| Performance Impact | Minimal, but network calls to Laravel’s endpoint could add latency. | Disable in non-critical paths; use queue for async reporting. |
| Framework Lock-in | Tied to Laravel’s error-handling system. | Abstract behind an interface if multi-framework support is needed. |
| Endpoint Reliability | Depends on Laravel’s upstream service (potential downtime). | Implement fallback (e.g., log locally if reporting fails). |
| Version Compatibility | May lag behind Laravel minor versions. | Test against your Laravel version; monitor for updates. |
Why Liferaft Over Alternatives?
Data Sensitivity
Operational Trade-offs
Long-Term Maintenance
App\Exceptions\Handler).composer require laravel/liferaft
php artisan vendor:publish --tag="liferaft-config"
config/liferaft.php:
'enabled' => env('APP_ENV') !== 'local',
'ignored_exceptions' => [
\Symfony\Component\HttpKernel\Exception\HttpException::class,
],
'filter' => function ($payload) {
// Custom filtering (e.g., remove sensitive data)
return $payload;
},
config/app.php (if not auto-discovered):
\Laravel\Liferaft\LiferaftServiceProvider::class,
curl or guzzlehttp/guzzle for HTTP reporting.Handler.report(). May need middleware to forward errors.enabled: true and monitor:
ignored_exceptions to reduce noise.liferaft.php in a config management system (e.g., Laravel Forge, Envoyer).Liferaft\Reporting\Report queue (if using queues) for backpressure.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Liferaft endpoint downtime | Lost framework bug reports. | Fallback to local logging ('fallback' => storage_path('logs/liferaft.log')). |
| Network restrictions (firewall) | Reports blocked. | Use a proxy or configure allowed IPs in liferaft.php. |
| High report volume | Rate limiting or throttling. | Implement queue delays or sampling ('sample_rate' => 0.1). |
| Sensitive data leakage | Compliance violations. | Strict filter callbacks + automated scanning of payloads. |
| Laravel version incompatibility | Package breaks. | Pin to a stable version in composer.json. |
How can I help you explore Laravel packages today?