xstrm / laravel-xstrm
Analytics, error tracking and performance monitoring for Laravel. Privacy-first, EU-hosted.
v0.3.0
2026-09-04 06:01 UTC
Requires
- php: ^8.2
- illuminate/contracts: ^11.0 || ^12.0 || ^13.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- orchestra/testbench: ^9.0 || ^10.0 || ^11.0
- pestphp/pest: ^3.0 || ^4.0
- pestphp/pest-plugin-laravel: ^3.0 || ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Analytics, error tracking and performance monitoring for Laravel. Privacy-first, EU-hosted.
composer require xstrm/laravel-xstrm php artisan xstrm:install
XSTRM_DSN=https://sk_live_9f2a4c...@in.xstrm.net/17
That is the entire required setup.
Safety
The package is designed so that it can never take your application down:
- Every collector and the transport are wrapped in
try/catch (\Throwable). Failures are swallowed and logged atdebuglevel, never higher. - A malformed or missing
XSTRM_DSNdisables the package silently. It never throws during boot. - HTTP timeout is 2 seconds, connect timeout 1 second.
- After 3 consecutive transport failures the circuit opens for 5 minutes.
- Sending happens after the response is delivered, never before.
- At most 500 events are held per request; the rest are dropped and counted.
Switches
| Variable | Default | Effect |
|---|---|---|
XSTRM_ENABLED |
true |
Global kill switch |
XSTRM_ANALYTICS |
true |
Pageviews |
XSTRM_ERRORS |
true |
Error capture |
XSTRM_PERF |
true |
Performance |
XSTRM_TRANSPORT |
auto |
auto, queue, inline or null |
Licence
MIT.