beemlabs/beem-laravel

Laravel 11/12 integration for the Beem SDK — auto-traces HTTP, DB queries, queue, console, and captures exceptions.

Maintainers

Package info

github.com/beemlabs/beem-laravel

pkg:composer/beemlabs/beem-laravel

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-07-19 09:19 UTC

This package is auto-updated.

Last update: 2026-07-19 09:24:00 UTC


README

beem-laravel — Laravel integration for Beem

CI Latest Version Total Downloads License: MIT

Laravel 11/12 integration for the Beem SDK — auto-traces HTTP requests, database queries, queued jobs, and console commands, and captures unhandled exceptions.

Requirements

Installation

composer require beemlabs/beem-laravel

The service provider is auto-discovered. Set your DSN in .env:

BEEM_DSN=https://pk_abc123@beem.example.com/shop-api

That's it — HTTP, DB, queue, and console instrumentation are on by default.

Configuration

Publish the config file if you need more than the env defaults:

php artisan vendor:publish --tag=beem-config

Environment variables:

Variable Default Description
BEEM_DSN Project DSN (empty disables the SDK)
BEEM_SAMPLE_RATE 1.0 Fraction of transactions to record
BEEM_MAX_BATCH_SIZE 500 Events buffered before an automatic flush
BEEM_FLUSH_TIMEOUT_MS 2000 HTTP transport timeout per flush
BEEM_ENVIRONMENT APP_ENV Environment tag on every event
BEEM_RELEASE null Release/version tag on every event
BEEM_INSTRUMENT_HTTP true Trace HTTP requests via middleware
BEEM_INSTRUMENT_DB true Record db.query spans for Eloquent/DB queries
BEEM_INSTRUMENT_QUEUE true Trace queued job execution
BEEM_INSTRUMENT_CONSOLE true Trace artisan commands

What gets traced

  • HTTP — one transaction per request, named after the matched route (GET /orders/{id}), with the response status.
  • Database — every query becomes a db.query span on the current transaction.
  • Queue — each processed job runs in its own transaction.
  • Console — each artisan command runs in its own transaction.
  • Exceptions — unhandled exceptions are captured and linked to the active transaction.

Manual instrumentation is available through the core SDK's Beem\Beem facade — see the beem-php README.

Development

composer install
composer test      # Pest + Orchestra Testbench
composer cs:check  # php-cs-fixer (dry-run)
composer cs:fix    # php-cs-fixer

This repository is a read-only split of the Beem monorepo. Please open issues and pull requests there — direct pushes here are overwritten by the next sync.

License

MIT