Download the PHP package stacktracer/stacktracer-symfony without Composer

On this page you can find all versions of the php package stacktracer/stacktracer-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package stacktracer-symfony

Stacktracer Symfony Bundle

Lightweight error tracking and tracing SDK for Symfony applications with OpenTelemetry-compatible distributed tracing. Capture exceptions, request traces, spans, breadcrumbs, logs, and performance data - all unified and linked together.

Features

Feature Tiers

Feature Tier Default
Exceptions & Stack Traces Free ✅ Enabled
Logs Free ✅ Enabled
Breadcrumbs Free ✅ Enabled
Request/Response Data Free ✅ Enabled
OTEL Spans Paid ❌ Disabled

To enable OTEL spans (paid feature):

Installation

Quick Setup

1. Add environment variables

Add to your .env file:

2. Create configuration file

Create config/packages/stacktracer.yaml:

That's it! The bundle will automatically:

Configuration Options

Manual Usage

Inject the service and use it directly:

Feature Flags & Experiments

Monitor errors as you roll out features or run A/B tests. Feature flags are linked to errors, helping identify if a feature introduced issues.

LaunchDarkly Integration

Split Integration

Distributed Tracing

The bundle automatically propagates trace context via W3C traceparent header:

Incoming requests with traceparent headers are automatically linked to the parent trace.

Symfony Integrations

All integrations are enabled by default and auto-detect component availability. Configure in stacktracer.yaml:

Available Integrations

Integration Component What's Tracked
Doctrine DBAL doctrine/dbal SQL queries, slow query detection (db.*)
HTTP Client symfony/http-client Outgoing requests, trace propagation (http.*)
Messenger symfony/messenger Async jobs, retries, failures (messaging.*, job.*)
Cache symfony/cache Cache hits/misses, operations (cache.*)
Console symfony/console CLI commands, exit codes, memory (cli.*)
Form symfony/form Validation errors, failed submissions (form.*)
Security symfony/security Login, logout, access denied (security.*)
Mailer symfony/mailer Email sending, delivery failures (mail.*)
Twig twig/twig Template renders, errors (template.*)

Example: Form Validation Errors

Form validation errors are automatically captured as breadcrumbs:

Example: Security Events

Authentication events are tracked automatically:

Example: Mailer Tracking

Email sending is tracked with delivery status:

Data Model

Unified Linking

All data is linked together for easy frontend navigation:

Fingerprinting

Stack traces and errors are fingerprinted for:

API Reference

TracingService

Method Description
captureException($e, $context) Capture an exception
captureMessage($msg, $level, $context) Capture a custom message
addBreadcrumb($cat, $msg, $data, $level) Add debugging breadcrumb
startSpan($name, $kind) Start a new span
endSpan($span) End a span
withSpan($name, $callback, $kind) Execute within a span
getCurrentSpan() Get active span
getTraceparent() Get W3C traceparent header
setIncomingContext($traceparent) Set context from incoming header
log($message, $level, $context) Add a log entry
setTag($key, $value) Set global tag
setContext($key, $value) Set global context
flush() Force send queued traces

Span Kinds (OTEL)

Trace Levels

Requirements

License

MIT


All versions of stacktracer-symfony with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
symfony/framework-bundle Version ^6.4 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.4 || ^7.0 || ^8.0
symfony/event-dispatcher Version ^6.4 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.4 || ^7.0 || ^8.0
symfony/config Version ^6.4 || ^7.0 || ^8.0
psr/log Version ^2.0 || ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package stacktracer/stacktracer-symfony contains the following files

Loading the files please wait ...