techsea / allstack-laravel
Official Laravel SDK for AllStack error tracking and monitoring
1.11
2025-02-15 14:35 UTC
Requires
- php: >=7.2 <9.0
- illuminate/support: 5.* || 6.* || 7.* || 8.* || 9.* || 10.* || 11.*
- symfony/http-client: ^4.4 || ^5.4 || ^6.0 || ^7.0
Requires (Dev)
- orchestra/testbench: 3.* || 4.* || 5.* || 6.* || 7.* || 8.* || 9.*
README
Official Laravel SDK for AllStack error tracking and monitoring by Techsea. This package provides seamless integration for error tracking and monitoring in your Laravel applications.
Installation
You can install the package via composer:
composer require techsea/allstack-laravel
Configuration
- Add the following variables to your
.env
file:
ALLSTACK_API_KEY=your-api-key ALLSTACK_ENVIRONMENT=production
- The service provider will be automatically registered thanks to Laravel's package discovery.
Usage
Capturing Exceptions
try { // Your code here } catch (\Throwable $e) { app(Techsea\AllStack\AllStackClient::class)->captureException($e); }
Tracking HTTP Requests
Add the middleware to your app/Http/Kernel.php
:
protected $middleware = [ // ... \Techsea\AllStack\Middleware\AllStackMiddleware::class, ];
Or use it in specific routes:
Route::middleware([\Techsea\AllStack\Middleware\AllStackMiddleware::class])->group(function () { // Your routes here });
Features
- Exception tracking with stack traces
- HTTP request monitoring
- System information collection
- Environment-specific configuration
- Automatic context gathering
- Error handling and logging
Testing
composer test
Contributing
Please see CONTRIBUTING.md for details.
Security
If you discover any security related issues, please email support@techsea.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.