Download the PHP package bugban/laravel without Composer
On this page you can find all versions of the php package bugban/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bugban/laravel
More information about bugban/laravel
Files in bugban/laravel
Package laravel
Short Description Bugban SDK — Laravel integration: automatic exception, request, auth & session capture.
License MIT
Homepage https://bugban.online
Informations about the package laravel
Bugban SDK — Laravel
Automatic exception, request, auth-user & session capture for Laravel (5.5 → 12), on top of the framework-agnostic bugban/php-sdk core.
Install
The service provider is auto-discovered. Optionally publish the config:
Configure — .env
That's it. Every exception Laravel reports is sent to Bugban together with the authenticated user, session id and request. No code changes required.
Manual capture
Log capture
With BUGBAN_CAPTURE_LOGS=true, a Monolog handler is pushed onto the default log channel and forwards every record at/above BUGBAN_LOG_LEVEL (default error) to Bugban — so Log::error('...'), Log::critical('...') and caught-and-logged errors that never re-throw are no longer missed. File logging is unaffected (the handler bubbles). Records that carry a Throwable in their context are skipped, because Laravel's reported exceptions are already captured — this avoids reporting the same uncaught exception twice.
How it works
- Hooks Laravel's
MessageLoggedevent and forwards any logged exception (levelerror+). - Resolves rich context (auth user, session, request) lazily via the core
context_resolver. - When
BUGBAN_CAPTURE_REQUESTS=true, pushes request timing to/api/ingest/requestsvia a terminable middleware added to thewebandapigroups. - Slow queries: listens to
DB::listenon every connection (MySQL/PostgreSQL/SQLite/...); queries slower thanBUGBAN_SLOW_QUERY_MS(default 1000 ms) are batched and sent non-blocking at shutdown to/api/ingest/queries, with the app caller file/line, connection name and redacted bindings.
PHP 7.1 → 8.4 compatible.