error-tag / errortag-laravel
This is my package errortag-laravel
Fund package maintenance!
Error-Tag
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/error-tag/errortag-laravel
Requires
- php: ^8.4
- illuminate/contracts: ^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
README
ErrorTag is an error monitoring and observability platform. This package is the client SDK that captures errors from your Laravel application and sends them to the ErrorTag dashboard for analysis, alerting, and team collaboration.
Features
- Automatic Error Capture - Hooks into Laravel's exception handler
- Intelligent Error Grouping - Groups similar errors using fingerprints
- Privacy-First - Sanitizes sensitive data (passwords, tokens, headers)
- Async by Default - Queues errors for background sending
- Rich Context - Captures request, user, and application data
- Highly Configurable - Sample rates, ignored exceptions, and more
- Fully Tested - Comprehensive test coverage with Pest
Installation
Install the package via Composer:
composer require error-tag/errortag-laravel
Publish the configuration file:
php artisan vendor:publish --tag="errortag-laravel-config"
Add your ErrorTag API key to .env:
ERRORTAG_KEY=project_xxxxx ERRORTAG_ENV=production
Quick Start
Once installed, ErrorTag automatically captures all unhandled exceptions. Test your setup:
php artisan errortag:test --send-test-error
Usage
Automatic Capture
// This exception is automatically captured throw new Exception('Something went wrong!');
Manual Reporting
use ErrorTag\ErrorTag\Facades\ErrorTag; try { processPayment($order); } catch (Exception $e) { ErrorTag::captureException($e); }
Adding Context
ErrorTag::context([ 'order_id' => $order->id, 'payment_provider' => 'stripe', ]);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.