Symfony 6.4/7 bundle for the Beem SDK — auto-traces HTTP requests, Doctrine queries, console commands, and Messenger messages, and captures unhandled exceptions.
beemlabs/beem-php (installed automatically)composer require beemlabs/beem-symfony
Register the bundle (skip if Flex does it for you):
// config/bundles.php
return [
// ...
Beem\SymfonyBundle\BeemSymfonyBundle::class => ['all' => true],
];
Configure the DSN:
# config/packages/beem.yaml
beem:
dsn: '%env(BEEM_DSN)%'
Full reference with defaults:
beem:
dsn: '%env(BEEM_DSN)%' # required; empty disables the SDK
sample_rate: 1.0 # 0.0–1.0
max_batch_size: 500
flush_timeout_ms: 2000
environment: null # defaults to kernel.environment
release: null
default_tags: {}
instrument_doctrine: true
instrument_console: true
instrument_messenger: true
db.query spans via a DBAL middleware/logger.Manual instrumentation is available through the core SDK's Beem\Beem facade — see the beem-php README.
composer install
composer test # Pest
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.
MIT
How can I help you explore Laravel packages today?