Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Flare Client Php Laravel Package

spatie/flare-client-php

PHP 8.2+ client for sending exceptions, errors, and stack traces to Flare. Install via Composer and use in any PHP app; Laravel users should use spatie/laravel-flare. Includes docs, tests, and ongoing maintenance by Spatie.

View on GitHub
Deep Wiki
Context7
3.1.0

What's Changed

Full Changelog: https://github.com/spatie/flare-client-php/compare/3.0.1...3.1.0

3.0.0

Logs, logs, logs and more:

  • Dedicated logging: new first-class logger on $flare->log() that records messages in the OpenTelemetry log format, replacing reportMessage(). Log levels now use Monolog's Level enum. See Logs.
  • Dynamic sampling: new DynamicSampler with SamplingRule definitions, letting you sample per entry point (e.g. health checks at 0%, checkout flows at 100%) without writing a custom sampler. See Sampling.
  • W3C traceparent aware sampling: samplers now receive an ?bool $parentSampled and can honor (or override) the inherited decision.
  • Job and queue recorders: first-class JobRecorder and QueueRecorder as part of the standard recorder pipeline. See Jobs and queues.
  • Subtask mode: jobs and commands executed inside an existing trace attach as subtasks instead of starting a new root trace.
  • Entry points: new EntryPoint value object resolved via EntryPointResolver, replacing the loose entryPointClass arguments and array context passed to samplers.
  • Attribute providers: recorders now accept dedicated RequestAttributesProvider, ResponseAttributesProvider, RouteAttributesProvider, CommandAttributesProvider, JobAttributesProvider, and UserAttributesProvider contracts, replacing ad-hoc recorder arguments. See Attribute providers.
  • Lifecycle: new Lifecycle class on $flare->lifecycle that owns flushing, resets, and internal state previously exposed on Flare. See Application lifecycle.
  • Flare daemon bundled by default: DaemonSender ships with the client and routes errors, traces, and logs through the local Flare daemon, with curl fallback when it's unreachable.
  • Flare accessors are now properties: $flare->tracer, $flare->backTracer, $flare->sentReports, $flare->ids, $flare->time, $flare->lifecycle, $flare->logger, $flare->reporter are public readonly properties.
  • Removed: error solutions (collectSolutions(), withSolutionProvider(), AddSolutions middleware, the spatie/error-solutions dependency).
  • Removed: reportMessage(), includeStackTraceWithMessages(), MessageLevels enum, sendReportsImmediately(), Flare::reset(), $flare->application().
  • Renamed: collectLogs()collectLogsWithErrors(), ignoreLogs()ignoreLogsWithErrors(), Tracer::addRawSpan()addSpan().

Full upgrade notes in UPGRADING.md.

1.11.1
  • Fixed: client now accepts HTTP status 201 as a successful response

Full Changelog: https://github.com/spatie/flare-client-php/compare/1.11.0...1.11.1

2.10.2
  • Handle non-JSON API responses gracefully in senders

Full Changelog: https://github.com/spatie/flare-client-php/compare/2.10.1...2.10.2

2.10.1
  • fix deprecation warnings for PHP 8.5

Full Changelog: https://github.com/spatie/flare-client-php/compare/2.10.0...2.10.1

2.10.0
  • Add new FullStacktraceAndExceptionClassAndCode grouping override

Full Changelog: https://github.com/spatie/flare-client-php/compare/2.9.0...2.10.0

2.9.0
  • Allow censoring cookies and sessions
2.8.0
  • Allow configuring the Request and Console attribute providers
2.6.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/flare-client-php/compare/2.5.3...2.6.0

2.5.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/flare-client-php/compare/2.5.2...2.5.3

2.5.2
  • Allow body field censoring using dot and wildcard syntax
  • Fix an issue where the default of the git attribute provider was not provided
2.5.1
  • Fix an issue where the disabled Flare infrastructure wasn't working propertly

Full Changelog: https://github.com/spatie/flare-client-php/compare/2.5.0...2.5.1

2.5.0
  • Add support for better trace context recording
2.4.0
  • Update the Git Collector to be more performant
3.3.3
  • Use local data to determine the flare client telemetry version
2.3.3
  • Use local data to determine the telemetry sdk version
2.3.2
  • Fix attribute key for span type in FilesystemRecorder.php
2.3.1
  • Better handling of success codes in the Api
2.3.0
  • Fixed an issue where disabled tracing could still trace
  • Completely refactored the recorders, the old traits are now deprecated in favour of specific classes for spans or span events
  • Fix an issue where attributes of spans & span events used in an error removed the span type
2.2.3
  • Fix sampler
2.2.2
  • Fix missing interface parameter

Full Changelog: https://github.com/spatie/flare-client-php/compare/2.2.0...2.2.2

2.2.0

What's Changed

  • Add additional methods to control custom context

Full Changelog: https://github.com/spatie/flare-client-php/compare/2.1.0...2.2.0

2.1.0
  • Add support for stacktraces with logs
2.0.9
  • Laravel's artisan is now considered a vendor file in stacktraces
  • Statamic's please is now considered a vendor file in stacktraces

Full Changelog: https://github.com/spatie/flare-client-php/compare/2.0.8...2.0.9

2.0.8
2.0.7
  • Add support for Curl Options
2.0.6
  • Add support for disabled Flare
2.0.5
  • Add base path to stacktrace builder
2.0.3
  • Use base URL const
2.0.2
  • Use correct base url
2.0.1
  • Routing changes
2.0.0

A complete rewrite of the package:

  • You can read our new docs on what has changed
  • There's an upgrade guide available
1.9.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/flare-client-php/compare/1.8.0...1.9.0

1.10.0
  • Add support for overriding grouping
1.8.0
  • Fix issues with symphony request payloads not behaving like they should.
1.6.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/flare-client-php/compare/1.5.1...1.6.0

1.4.4

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/flare-client-php/compare/1.4.3...1.4.4

1.4.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/flare-client-php/compare/1.4.2...1.4.3

1.4.2
  • Loosen type for previous exception handler
1.4.1
  • Add better support for error exceptions
1.4.0
  • Add support for stack trace arguments
1.3.6
  • recognise AI generated solutions
1.3.4
  • prep for Laravel 10
1.3.3
1.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/flare-client-php/compare/1.2.0...1.3.0

1.2.0
  • Add php_version as default env context

Full Changelog: https://github.com/spatie/flare-client-php/compare/1.1.1...1.2.0

1.1.1
1.1.0
  • Allow passing an initialised Report instance to report() to Flare

Full Changelog: https://github.com/spatie/flare-client-php/compare/1.0.5...1.1.0

1.0.5
  • Fix exception when stage is null

Full Changelog: https://github.com/spatie/flare-client-php/compare/1.0.4...1.0.5

1.0.4
1.0.3
1.0.2
  • avoid crash git info middleware
1.0.1
  • Add censor request headers middleware
1.0.0
  • initial release
What's
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai