techsea/allstack-laravel

Official Laravel SDK for AllStack error tracking and monitoring

1.11 2025-02-15 14:35 UTC

This package is not auto-updated.

Last update: 2025-07-08 22:56:30 UTC


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

  1. Add the following variables to your .env file:
ALLSTACK_API_KEY=your-api-key
ALLSTACK_ENVIRONMENT=production
  1. 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.