Download the PHP package signalstack/laravel without Composer
On this page you can find all versions of the php package signalstack/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download signalstack/laravel
More information about signalstack/laravel
Files in signalstack/laravel
Package laravel
Short Description Laravel SDK for SignalStack error logging
License MIT
Informations about the package laravel
SignalStack Laravel SDK
Laravel SDK for sending error logs to a SignalStack server.
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
Installation
Publish the config file:
Configuration
Add these variables to your .env:
All available variables
| Variable | Default | Description |
|---|---|---|
SIGNALSTACK_URL |
http://localhost:8000 |
Your SignalStack server URL |
SIGNALSTACK_API_KEY |
— | Project API key (from the SignalStack dashboard) |
SIGNALSTACK_ENVIRONMENT |
APP_ENV value |
Environment name sent with each error |
SIGNALSTACK_SOURCE |
APP_NAME value |
Source identifier sent with each error |
SIGNALSTACK_LEVEL |
error |
Minimum log level to capture (see note below) |
SIGNALSTACK_TIMEOUT |
5 |
HTTP request timeout in seconds |
SIGNALSTACK_EXCEPTION_HANDLER |
true |
Auto-capture unhandled exceptions |
SIGNALSTACK_QUEUE_ENABLED |
false |
Send errors via queue (recommended for production) |
SIGNALSTACK_QUEUE_CONNECTION |
null |
Queue connection (database, redis, etc.) |
SIGNALSTACK_QUEUE_NAME |
default |
Queue name to push jobs onto |
SIGNALSTACK_BATCH_ENABLED |
false |
Accumulate errors and send in batches |
SIGNALSTACK_BATCH_SIZE |
10 |
Number of errors per batch |
Important:
SIGNALSTACK_LEVEL=errorwill silently dropwarning,notice,info, anddebugmessages. Set towarningif you want to capture both warnings and errors.
Verify Connection
After configuring your .env, run:
Expected output:
Check the health of your SignalStack server:
Usage
Facade
Capturing exceptions
Unhandled exceptions are also captured automatically when SIGNALSTACK_EXCEPTION_HANDLER=true (the default).
As a Laravel log channel
Add the channel to config/logging.php:
Now Log::error(...) and Log::warning(...) automatically forward to SignalStack.
Artisan commands
Advanced
Queue mode (recommended for production)
Send errors asynchronously so they don't slow down user requests:
Staging vs Production:
- On staging — set
SIGNALSTACK_QUEUE_ENABLED=false. Errors are sent immediately via HTTP, no queue worker needed.- On production — set
SIGNALSTACK_QUEUE_ENABLED=true. Errors are dispatched to the queue and processed by Supervisor in the background, with zero impact on response time.
Make sure the SIGNALSTACK_QUEUE_NAME matches the queue your Supervisor worker is listening to.
Batch mode
Accumulate errors and send them in a single request instead of one-by-one:
The batch is flushed automatically when it reaches the configured size, or when the application terminates.
Minimum log level
Only capture errors at or above a given severity:
Context collection
Context fields collected automatically with each error (all enabled by default):
Safe usage in jobs and background processes
When using SignalStack inside queue jobs or any code where it must not affect core logic, use this safe pattern:
This ensures:
- If the package is not installed → returns silently
- If the SignalStack server is down → caught and logged
- Core business logic is never affected
Troubleshooting
signalstack:test returns "Failed to send test error"
- Check
SIGNALSTACK_URLis reachable from your server:curl https://your-signalstack-server.com/api/v1/logger/health - Check
SIGNALSTACK_API_KEYmatches the project key in the dashboard - Check the project is active in the SignalStack dashboard
Warnings are not appearing in the dashboard
- Check
SIGNALSTACK_LEVEL— if set toerror, warnings are silently dropped. Set towarning. - Run
php artisan config:clearafter changing.env
Errors are sent but no Telegram/Slack notification received
- The notification channel may not be linked to the project in the dashboard
- Check the minimum notification level set on the channel (must be ≤ the error level being sent)
- Click Test Connection on the channel in the dashboard
Jobs stuck in queue / notifications delayed
- Queue worker is not running. Either start it (
php artisan queue:work) or setSIGNALSTACK_QUEUE_ENABLED=false - Clear stuck jobs:
php artisan queue:clear - Check Supervisor is running:
sudo supervisorctl status
All versions of laravel with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0