Download the PHP package beemlabs/beem-php without Composer
On this page you can find all versions of the php package beemlabs/beem-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package beem-php
Core Beem SDK for PHP — framework-agnostic, zero runtime dependencies.
Captures transactions, spans, and exceptions from any PHP application and ships them to a Beem server over HTTP, with automatic batching and shutdown flush.
Requirements
- PHP 8.2+
ext-json,ext-curl
Installation
Using Symfony or Laravel? Prefer the framework packages, which auto-instrument HTTP, DB, console, and queues on top of this core:
Quick start
Configuration
Beem::init() accepts:
| Option | Default | Description |
|---|---|---|
dsn |
— (required) | Project DSN, e.g. https://<public_key>@<host>/<project> |
sample_rate |
1.0 |
Fraction of transactions to record (0.0–1.0) |
max_batch_size |
500 |
Events buffered before an automatic flush |
flush_timeout_ms |
2000 |
HTTP transport timeout per flush |
environment |
production |
Environment tag attached to every event |
release |
null |
Release/version tag attached to every event |
default_tags |
[] |
Key/value tags merged into every event |
API
Beem::init(array $options): Client— bootstrap the global clientBeem::startTransaction(string $name, string $op = 'http.server'): TransactionBeem::getCurrentTransaction(): ?TransactionBeem::finishTransaction(?int $httpStatus = null): ?arrayBeem::captureException(\Throwable $e, array $context = []): ?arrayBeem::flush(): void— force-send buffered eventsTransaction::startSpan(string $op, string $description): SpanSpan::finish(?float $durationMs = null): void
Events are buffered in-process and flushed on flush(), when the batch is full, or automatically at shutdown.
Development
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
All versions of beem-php with dependencies
ext-json Version *
ext-curl Version *