Download the PHP package allstak/sdk-symfony without Composer
On this page you can find all versions of the php package allstak/sdk-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download allstak/sdk-symfony
More information about allstak/sdk-symfony
Files in allstak/sdk-symfony
Package sdk-symfony
Short Description Official AllStak Symfony bundle — drop-in, fully automatic observability for Symfony 6.4 and 7.x. One install plus an API key auto-captures errors, inbound and outbound HTTP, DB queries, logs, traces and spans, breadcrumbs, console commands, and messenger messages. Every integration is on by default and individually toggleable.
License MIT
Homepage https://allstak.sa
Informations about the package sdk-symfony
AllStak Symfony Bundle
Official AllStak bundle for Symfony 6.4 and 7.x. Drop-in, fully automatic observability with near-zero configuration: install, set your API key, and the bundle auto-captures errors, inbound and outbound HTTP, database queries, logs, traces and spans, breadcrumbs, console commands, and Messenger messages.
Built on top of the allstak/sdk-php
core client — this bundle does not reimplement transport, it wires the core SDK
into the Symfony container and event system.
Install
With Symfony Flex the bundle is registered automatically. Without Flex, add it
to config/bundles.php:
Configure
The only thing you need is an API key. Set it in the environment:
That is the entire zero-config path. The bundle reads ALLSTAK_API_KEY on boot
and turns every integration ON. For more control, add
config/packages/allstak.yaml:
Every integration is ON by default and individually toggleable. Optional framework pieces (console, messenger, Doctrine DBAL, HTTP client, Monolog) self-disable gracefully when their package is not installed.
What gets captured automatically
| Area | Mechanism |
|---|---|
| Unhandled errors | kernel.exception capture with full request context |
| Inbound HTTP | kernel.response http-request record (method, path, host, status, time) |
| Request spans | kernel.request -> kernel.response server span, joined to inbound trace |
| Breadcrumbs | controller resolution, console commands, messages, logs |
| Outbound HTTP | decorated HttpClientInterface: record + span + trace-propagation header |
| Database queries | Doctrine DBAL driver middleware: normalized query, duration, status |
| Logs | Monolog handler: ships logs, ERROR+ with an exception becomes a capture |
| Console commands | ConsoleEvents span + error capture on non-zero exit |
| Messenger | middleware span per handled message + error capture on handler failure |
| Buffer flush | kernel.terminate / console terminate drains buffers after the response |
Manual API (bonus)
Auto-instrumentation is the primary path. When you want explicit control, the core SDK service is autowirable:
You can also use the static facade AllStak\Facade anywhere after boot.
Outbound HTTP & trace propagation
The bundle decorates the framework http_client service, so any autowired
HttpClientInterface call is recorded and carries a trace-propagation
baggage header automatically. No code changes are needed:
Doctrine DBAL
When doctrine/dbal is installed, the bundle registers a DBAL driver
middleware (the modern, non-deprecated instrumentation seam). DoctrineBundle
picks it up via the doctrine.middleware tag and applies it to every
connection, so queries are recorded with zero changes to your repositories.
Messenger
The bundle prepends its middleware onto the default message bus, so handled
messages are instrumented automatically. If you define custom buses, add
allstak.messenger_middleware to that bus's middleware list.
Local development against the core SDK
For local builds before the package is published, add a path repository so the core client resolves from your checkout:
The release require uses the published package:
Requirements
- PHP >= 8.1
- Symfony 6.4 or 7.x
allstak/sdk-php^1.3
License
MIT
All versions of sdk-symfony with dependencies
allstak/sdk-php Version ^1.4
symfony/config Version ^6.4|^7.0
symfony/dependency-injection Version ^6.4|^7.0
symfony/http-kernel Version ^6.4|^7.0
symfony/event-dispatcher Version ^6.4|^7.0