diff --git a/docker/README.md b/docker/README.md index 235efa4..2fb8399 100644 --- a/docker/README.md +++ b/docker/README.md @@ -60,7 +60,7 @@ After changing an env switch, recreate: `docker compose up -d --force-recreate a ```sh docker compose exec app-stock php artisan fixtures:dispatch --list -docker compose exec app-stock php artisan fixtures:dispatch # all but crashes and calls-artisan +docker compose exec app-stock php artisan fixtures:dispatch # all but crashes, calls-artisan and fails-in-vendor docker compose exec app-stock php artisan fixtures:dispatch crashes # exit(255); --crash=segv for SIGSEGV docker compose exec app-stock php artisan fixtures:dispatch sleeps --sleep=20 --queue=import docker compose exec app-stock php artisan fixtures:dispatch sleeps-steady --sleep=20 # sleeps through signals @@ -215,5 +215,8 @@ heavy jobs (image renditions, LLM calls, Livewire renders, bulk maintenance): Forge server. One override, `php/conf.d/zz-cli.ini`: `memory_limit=-1`, as Ubuntu's CLI php.ini has. Otherwise a worker would die at 128M before Horizon's own `memory` check (128 MB) recycles it. - `workbench/composer.json` pins `laravel/horizon` to `5.52.*`. -- The package is a Composer path repository (`..`, symlinked), so changes to `src/` need no reinstall; - restart Horizon (`docker compose restart app-prefork`) to load them. +- The package is a Composer path repository (`..`), but `setup` replaces Composer's symlink with a copy + of `bin/`, `config/`, `src/` and `composer.json`, as an install from Packagist has: PHP resolves + symlinks in stack traces, and error trackers judge a frame by its path. `setup` copies again on every + `up`, so recreate the stacks (`docker compose up -d --force-recreate app-stock app-prefork`) to load + changes to `src/`. diff --git a/docker/php/setup.sh b/docker/php/setup.sh index 4eb518f..5d1b5c5 100755 --- a/docker/php/setup.sh +++ b/docker/php/setup.sh @@ -1,7 +1,6 @@ #!/bin/sh # One-shot `setup` service: installs the workbench's vendor/ inside Linux, so platform checks -# (ext-pcntl, ext-posix, ext-redis) match the app containers. The package itself is a symlink to -# the repo root (Composer path repository), so edits to src/ need no reinstall. +# (ext-pcntl, ext-posix, ext-redis) match the app containers. set -eu cd /repo/workbench @@ -10,3 +9,20 @@ if [ "${1:-}" = "update" ]; then else composer install --no-interaction --no-progress fi + +# The package goes in as a copy, as Composer installs it from Packagist, not as the path repository's +# symlink to the repo root: PHP resolves symlinks in stack traces, and error trackers judge a frame by +# its path (App\Support\ErrorTrackers). Copied again on every run, so edits to src/ reach the stacks +# when they are recreated. +pkg=vendor/tevkert/queue-prefork +rm -rf "$pkg.copy" +mkdir "$pkg.copy" +cp -R /repo/bin /repo/config /repo/src /repo/composer.json "$pkg.copy/" + +if [ -L "$pkg" ]; then + rm "$pkg" +else + rm -rf "$pkg" +fi + +mv "$pkg.copy" "$pkg" diff --git a/src/Handoff.php b/src/Handoff.php index d9c9bbb..7658ec9 100644 --- a/src/Handoff.php +++ b/src/Handoff.php @@ -421,7 +421,7 @@ private function connect(string $socket): bool /** Starts this key's template, detached from this process's session. */ private function launch(): void { - $template = RuntimeDir::copy($this->runtime, 'template', 'php', (string) file_get_contents(dirname(__DIR__).'/bin/template.php')); + $template = RuntimeDir::launcher($this->runtime, dirname(__DIR__)); RuntimeDir::writeAtomic($this->runtime, "{$this->key16}.ini.json", json_encode(TemplateKey::iniValues(), JSON_UNESCAPED_SLASHES)); $command = [PHP_BINARY, ...self::phpOptions()]; diff --git a/src/Master.php b/src/Master.php index 9720ee6..46ea30a 100644 --- a/src/Master.php +++ b/src/Master.php @@ -67,6 +67,9 @@ final class Master private string $statusDir = ''; + /** What the template is started from (RuntimeDir::launcher). */ + private string $launcher = ''; + private float $lastSnapshot = 0.0; /** @var array supervisor name => current unit handle */ @@ -284,8 +287,7 @@ private function prepareRuntimeDir(): void RuntimeDir::ensure($this->statusDir); if (! self::forkedByHost()) { - $launcher = (string) file_get_contents(self::packageDir().'/bin/template.php'); - RuntimeDir::writeAtomic($this->runtimeDir, 'template.php', $launcher); + $this->launcher = RuntimeDir::launcher($this->runtimeDir, self::packageDir()); } } @@ -382,7 +384,7 @@ private function templateCommand(): array array_push($command, '-d', $setting); } - $command[] = $this->runtimeDir.'/template.php'; + $command[] = $this->launcher; return $command; } diff --git a/src/MasterHandoff.php b/src/MasterHandoff.php index 17cede6..0a7b3fc 100644 --- a/src/MasterHandoff.php +++ b/src/MasterHandoff.php @@ -82,7 +82,7 @@ private static function exec(string $entry): void { $runtime = RuntimeDir::shared(); RuntimeDir::ensure($runtime); - $template = RuntimeDir::copy($runtime, 'template', 'php', (string) file_get_contents(dirname(__DIR__).'/bin/template.php')); + $template = RuntimeDir::launcher($runtime, dirname(__DIR__)); $ini = RuntimeDir::copy($runtime, 'ini', 'json', json_encode(TemplateKey::iniValues(), JSON_UNESCAPED_SLASHES)); $settings = TemplateKey::settings(dirname($entry)); $argv = Handoff::phpOptions(); diff --git a/src/Support/RuntimeDir.php b/src/Support/RuntimeDir.php index 4167428..90f8238 100644 --- a/src/Support/RuntimeDir.php +++ b/src/Support/RuntimeDir.php @@ -139,6 +139,41 @@ public static function writeAtomic(string $dir, string $name, string $contents): } } + /** + * What a template is started from: a link in $dir to the package's own bin/template.php. The command + * line keeps this private path, with nothing in it horizon:purge could match, while PHP resolves the + * link: stack traces name the launcher in the app's vendor/, so error trackers count it as library + * code, as they do artisan. Links whose release is gone are removed. A copy where no link can be made. + */ + public static function launcher(string $dir, string $packageDir): string + { + self::check($dir); + $target = $packageDir.'/bin/template.php'; + $link = "{$dir}/template-".substr(hash('sha256', $target), 0, 16).'.php'; + + foreach (glob("{$dir}/template-*.php") ?: [] as $file) { + if ($file !== $link && is_link($file) && ! file_exists($file)) { + @unlink($file); + } + } + + if (@readlink($link) === $target) { + return $link; + } + + $tmp = "{$dir}/.template.".getmypid().'.'.bin2hex(random_bytes(4)).'.tmp'; + + if (function_exists('symlink') && @symlink($target, $tmp)) { + if (@rename($tmp, $link)) { + return $link; + } + + @unlink($tmp); + } + + return self::copy($dir, 'template', 'php', (string) file_get_contents($target)); + } + /** A copy of a package file in $dir, named by its content, so pruning a release can't remove it. */ public static function copy(string $dir, string $name, string $extension, string $contents): string { diff --git a/tests/Integration/QueueWorkStockParityTest.php b/tests/Integration/QueueWorkStockParityTest.php index 783ec90..80a75ba 100644 --- a/tests/Integration/QueueWorkStockParityTest.php +++ b/tests/Integration/QueueWorkStockParityTest.php @@ -35,8 +35,9 @@ public function test_a_job_sees_the_same_process_as_in_stock(): void public function test_every_fixture_ends_as_in_stock(): void { - // All but `crashes` (QueueWorkParityTest has it) and `calls-artisan` (its own test): random values, connections, Concurrency::run, - // batches, releases, failures, a timeout kill, a --memory exit, output. + // All but `crashes` (QueueWorkParityTest has it), `calls-artisan` and `fails-in-vendor` (their own + // tests): random values, connections, Concurrency::run, batches, releases, failures, a timeout + // kill, a --memory exit, output. self::both(fn ($c) => self::artisan($c, 'fixtures:dispatch --queue='.self::QUEUE)); $outcomes = []; @@ -75,6 +76,21 @@ public function test_a_job_keeps_its_worker_after_running_an_artisan_command(): $this->assertSame($seen[self::STOCK], $seen[self::PREFORK], 'SIGALRM does after the command what it does in stock'); } + public function test_error_trackers_see_a_failed_job_as_in_stock(): void + { + // As in StockParityTest: a job failing in vendor code only, through Flare, Sentry and Nightwatch. + self::both(fn ($c) => self::artisan($c, 'fixtures:dispatch fails-in-vendor --queue='.self::QUEUE)); + $seen = []; + + foreach (self::BOTH as $container) { + $seen[$container] = self::waitUntil(fn () => self::rows($container, 'ErrorTrackers'), 30, "ErrorTrackers in {$container}")[0]['value']; + } + + $this->assertSame([], $seen[self::STOCK]['flare_app_frames'], 'stock: no frame is the app\'s'); + $this->assertSame($seen[self::STOCK]['thrown_at'], $seen[self::STOCK]['flare_first_frame'], 'stock: Flare keeps the trace from where it was thrown'); + $this->assertSame($seen[self::STOCK], $seen[self::PREFORK]); + } + public function test_concurrent_workers_draw_different_random_numbers(): void { // Forked workers reseed: two of them must not share a sequence (the template's seed). Each job diff --git a/tests/Integration/StockParityTest.php b/tests/Integration/StockParityTest.php index ea9318d..f7d5515 100644 --- a/tests/Integration/StockParityTest.php +++ b/tests/Integration/StockParityTest.php @@ -92,6 +92,27 @@ public function test_a_job_keeps_its_worker_after_running_an_artisan_command(): $this->assertSame($seen[self::STOCK], $seen[self::PREFORK], 'SIGALRM does after the command what it does in stock'); } + public function test_error_trackers_see_a_failed_job_as_in_stock(): void + { + // A job that fails in vendor code only, as a package's job does: Flare, Sentry and Nightwatch must + // see its stack trace as in stock (App\Support\ErrorTrackers). A forked worker's trace ends in the + // launcher, not in artisan, and the launcher must count as library code. The queue:work + // counterpart is in QueueWorkStockParityTest. + foreach ([self::STOCK, self::PREFORK] as $container) { + self::artisan($container, 'fixtures:dispatch fails-in-vendor'); + } + + $seen = []; + + foreach ([self::STOCK, self::PREFORK] as $container) { + $seen[$container] = self::waitUntil(fn () => self::results($container, 'ErrorTrackers'), 30, "ErrorTrackers in {$container}")[0]['value']; + } + + $this->assertSame([], $seen[self::STOCK]['flare_app_frames'], 'stock: no frame is the app\'s'); + $this->assertSame($seen[self::STOCK]['thrown_at'], $seen[self::STOCK]['flare_first_frame'], 'stock: Flare keeps the trace from where it was thrown'); + $this->assertSame($seen[self::STOCK], $seen[self::PREFORK]); + } + public function test_worker_output_reaches_the_horizon_log(): void { foreach ([self::STOCK, self::PREFORK] as $container) { diff --git a/tests/Mechanics/TemplateHarness.php b/tests/Mechanics/TemplateHarness.php index 305028b..e92a0f7 100644 --- a/tests/Mechanics/TemplateHarness.php +++ b/tests/Mechanics/TemplateHarness.php @@ -36,12 +36,12 @@ public function __construct(array $config = [], ?int $masterPid = null, bool $ma $master = $masterPid ?? getmypid(); $this->statusDir = $this->runtimeDir.'/'.Identity::key($master, Identity::startTime($master)); RuntimeDir::ensure($this->statusDir); - RuntimeDir::writeAtomic($this->runtimeDir, 'template.php', (string) file_get_contents($root.'/bin/template.php')); + $launcher = RuntimeDir::launcher($this->runtimeDir, $root); $this->out = $this->runtimeDir.'/events.jsonl'; touch($this->out); $command = [PHP_BINARY, '-d', 'opcache.enable=1', '-d', 'opcache.enable_cli=1', '-d', 'opcache.revalidate_freq=0', - '-d', 'display_errors=stderr', '-d', 'hp.pad='.str_repeat('.', 4096), '-d', 'auto_prepend_file=', $this->runtimeDir.'/template.php']; + '-d', 'display_errors=stderr', '-d', 'hp.pad='.str_repeat('.', 4096), '-d', 'auto_prepend_file=', $launcher]; $env = array_merge(getenv(), [ 'HP_PACKAGE_DIR' => $root, 'HP_MASTER_PID' => (string) $master, diff --git a/tests/Unit/RuntimeDirTest.php b/tests/Unit/RuntimeDirTest.php index 8d18153..c21f132 100644 --- a/tests/Unit/RuntimeDirTest.php +++ b/tests/Unit/RuntimeDirTest.php @@ -78,6 +78,37 @@ public function test_refuses_a_symlink(): void RuntimeDir::check($this->base.'/link'); } + public function test_the_launcher_is_a_link_to_the_package_file(): void + { + $dir = $this->base.'/rt'; + RuntimeDir::ensure($dir); + $package = dirname(__DIR__, 2); + + $launcher = RuntimeDir::launcher($dir, $package); + + $this->assertStringStartsWith($dir.'/template-', $launcher, 'the command line keeps the runtime path'); + $this->assertTrue(is_link($launcher)); + $this->assertSame(realpath($package.'/bin/template.php'), realpath($launcher), 'PHP names the package file in stack traces'); + $this->assertSame($launcher, RuntimeDir::launcher($dir, $package), 'reused'); + } + + public function test_launchers_of_a_removed_release_are_removed(): void + { + $dir = $this->base.'/rt'; + RuntimeDir::ensure($dir); + mkdir($this->base.'/old/bin', 0700, true); + file_put_contents($this->base.'/old/bin/template.php', 'base.'/old'); + $copy = RuntimeDir::copy($dir, 'template', 'php', 'base.'/old')); + + $current = RuntimeDir::launcher($dir, dirname(__DIR__, 2)); + + $this->assertFalse(is_link($old), 'the dangling link is gone'); + $this->assertFileExists($copy, 'a copy from an earlier version stays: a template may be starting from it'); + $this->assertTrue(is_link($current)); + } + public function test_never_reads_a_symlinked_status_file(): void { $dir = $this->base.'/rt'; diff --git a/workbench/app/Console/Commands/FixturesDispatch.php b/workbench/app/Console/Commands/FixturesDispatch.php index 5c5bbc6..03ea8d8 100644 --- a/workbench/app/Console/Commands/FixturesDispatch.php +++ b/workbench/app/Console/Commands/FixturesDispatch.php @@ -17,12 +17,13 @@ use App\Jobs\Succeeds; use App\Jobs\TimesOut; use Illuminate\Console\Command; +use Illuminate\Foundation\Console\QueuedCommand; -/** Dispatches fixture jobs by name. With no names, every fixture except `crashes` and `calls-artisan`. */ +/** Dispatches fixture jobs by name. With no names, every fixture except `crashes`, `calls-artisan` and `fails-in-vendor`. */ class FixturesDispatch extends Command { protected $signature = 'fixtures:dispatch - {fixtures?* : fixture names (see --list); default: all but crashes and calls-artisan} + {fixtures?* : fixture names (see --list); default: all but crashes, calls-artisan and fails-in-vendor} {--queue=default : queue to dispatch on} {--times=1 : how many of each} {--sleep=3 : seconds for sleeps} @@ -46,7 +47,7 @@ public function handle(): int return self::SUCCESS; } - $names = $this->argument('fixtures') ?: array_values(array_diff(array_keys($fixtures), ['crashes', 'calls-artisan'])); + $names = $this->argument('fixtures') ?: array_values(array_diff(array_keys($fixtures), ['crashes', 'calls-artisan', 'fails-in-vendor'])); $unknown = array_diff($names, array_keys($fixtures)); if ($unknown) { @@ -87,6 +88,9 @@ private function fixtures(): array 'runs-concurrency' => fn () => new RunsConcurrency, 'dispatches-batch' => fn () => new DispatchesBatch, 'calls-artisan' => fn () => new CallsArtisan((int) $this->option('work')), + // Laravel's own job, failing in Symfony's code: a trace without any of the app's frames, as for + // a package's job. App\Support\ErrorTrackers records what error trackers make of it. + 'fails-in-vendor' => fn () => new QueuedCommand(['fixtures:no-such-command', []]), ]; } } diff --git a/workbench/app/Support/ErrorTrackers.php b/workbench/app/Support/ErrorTrackers.php new file mode 100644 index 0000000..aee1072 --- /dev/null +++ b/workbench/app/Support/ErrorTrackers.php @@ -0,0 +1,47 @@ + str_replace(base_path().'/', '', $file).':'.$line; + + self::$flare ??= Flare::make(FlareConfig::make('workbench')->useDefaults()->applicationPath(base_path())); + $flare = self::$flare->createReport($e)->toArray()['stacktrace']; + + // sentry-laravel's defaults (ServiceProvider::configureAndRegisterClient) + $options = new Options(['prefixes' => [base_path()], 'in_app_exclude' => [base_path('vendor'), base_path('artisan')]]); + $sentry = (new StacktraceBuilder($options, new RepresentationSerializer($options)))->buildFromException($e)->getFrames(); + + [$file, $line] = (new Location(base_path(), public_path()))->forException($e); + + JobResult::record('ErrorTrackers', [ + 'thrown_at' => $at($e->getFile(), $e->getLine()), + 'flare_first_frame' => $at($flare[0]['file'], $flare[0]['lineNumber']), + 'flare_app_frames' => array_map(fn (array $frame) => $at($frame['file'], $frame['lineNumber']), array_values(array_filter($flare, fn (array $frame) => $frame['isApplicationFrame']))), + 'sentry_in_app' => array_map(fn ($frame) => $at($frame->getAbsoluteFilePath(), $frame->getLine()), array_values(array_filter($sentry, fn ($frame) => $frame->isInApp()))), + 'nightwatch_location' => $at(str_starts_with($file, '/') ? $file : base_path($file), $line), + ]); + } +} diff --git a/workbench/bootstrap/app.php b/workbench/bootstrap/app.php index 1085719..34c1fb9 100644 --- a/workbench/bootstrap/app.php +++ b/workbench/bootstrap/app.php @@ -4,6 +4,7 @@ use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Middleware; use Illuminate\Http\Request; +use Symfony\Component\Console\Exception\CommandNotFoundException; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( @@ -18,4 +19,11 @@ $exceptions->shouldRenderJsonWhen( fn (Request $request) => $request->is('api/*') || $request->expectsJson(), ); + + // The fails-in-vendor fixture: what error trackers would report (App\Support\ErrorTrackers). + $exceptions->report(function (CommandNotFoundException $e): void { + if (str_contains($e->getMessage(), 'fixtures:no-such-command')) { + App\Support\ErrorTrackers::record($e); + } + }); })->create(); diff --git a/workbench/composer.json b/workbench/composer.json index 6217a86..39ecc6c 100644 --- a/workbench/composer.json +++ b/workbench/composer.json @@ -55,9 +55,11 @@ "opcodesio/log-viewer": "^3.24", "platformcommunity/flysystem-bunnycdn": "^3.3", "ramsey/uuid": "^4.9", + "sentry/sentry": "^4.38", "socialiteproviders/discord": "^4.2", "socialiteproviders/manager": "^4.9", "socialiteproviders/twitch": "^5.4", + "spatie/flare-client-php": "^3.6", "spatie/fork": "^1.2", "spatie/laravel-activitylog": "^4.12", "spatie/laravel-health": "^1.40", diff --git a/workbench/composer.lock b/workbench/composer.lock index 45a5170..efc3e07 100644 --- a/workbench/composer.lock +++ b/workbench/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8de684aa26fba96a400c66588cb1f88c", + "content-hash": "a75a0aa4e105e36a836bb8bd28736694", "packages": [ { "name": "anourvalar/eloquent-serialize", @@ -3441,6 +3441,67 @@ ], "time": "2025-09-14T15:34:49+00:00" }, + { + "name": "jean85/pretty-package-versions", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/Jean85/pretty-package-versions.git", + "reference": "4d7aa5dab42e2a76d99559706022885de0e18e1a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/4d7aa5dab42e2a76d99559706022885de0e18e1a", + "reference": "4d7aa5dab42e2a76d99559706022885de0e18e1a", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.1.0", + "php": "^7.4|^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "jean85/composer-provided-replaced-stub-package": "^1.0", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^7.5|^8.5|^9.6", + "rector/rector": "^2.0", + "vimeo/psalm": "^4.3 || ^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Jean85\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alessandro Lai", + "email": "alessandro.lai85@gmail.com" + } + ], + "description": "A library to get pretty versions strings of installed dependencies", + "keywords": [ + "composer", + "package", + "release", + "versions" + ], + "support": { + "issues": "https://github.com/Jean85/pretty-package-versions/issues", + "source": "https://github.com/Jean85/pretty-package-versions/tree/2.1.1" + }, + "time": "2025-03-19T14:43:43+00:00", + "published-time": "2025-03-19T14:50:06+00:00" + }, { "name": "kirschbaum-development/eloquent-power-joins", "version": "4.3.6", @@ -4339,7 +4400,8 @@ "issues": "https://github.com/laravel/nightwatch/issues", "source": "https://github.com/laravel/nightwatch" }, - "time": "2026-10-27T00:46:16+00:00" + "time": "2026-10-27T00:46:16+00:00", + "published-time": "2026-10-27T00:46:21+00:00" }, { "name": "laravel/octane", @@ -9312,6 +9374,104 @@ ], "time": "2022-12-17T21:53:22+00:00" }, + { + "name": "sentry/sentry", + "version": "4.38.0", + "source": { + "type": "git", + "url": "https://github.com/getsentry/sentry-php.git", + "reference": "9e5f09ccb8f741dde2717f48b1c6df820f95b7c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/9e5f09ccb8f741dde2717f48b1c6df820f95b7c5", + "reference": "9e5f09ccb8f741dde2717f48b1c6df820f95b7c5", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "guzzlehttp/psr7": "^1.8.4|^2.1.1|^3.0.0", + "jean85/pretty-package-versions": "^1.5|^2.0.4", + "php": "^7.2|^8.0", + "psr/log": "^1.0|^2.0|^3.0", + "symfony/options-resolver": "^4.4.30|^5.0.11|^6.0|^7.0|^8.0" + }, + "conflict": { + "raven/raven": "*" + }, + "require-dev": { + "carthage-software/mago": "1.60.2", + "friendsofphp/php-cs-fixer": "^3.4", + "guzzlehttp/guzzle": "^7.0|^8.0", + "guzzlehttp/promises": "^2.0.3|^3.0.0", + "monolog/monolog": "^1.6|^2.0|^3.0", + "nyholm/psr7": "^1.8", + "open-telemetry/api": "^1.1", + "open-telemetry/context": "^1.1", + "open-telemetry/exporter-otlp": "^1.1", + "open-telemetry/gen-otlp-protobuf": "^1.2.1", + "open-telemetry/sdk": "^1.1", + "open-telemetry/sem-conv": "^1.27", + "phpstan/phpstan": "^2.2", + "phpunit/phpunit": "^8.5.52|^9.6.34", + "spiral/roadrunner-http": "^3.6", + "spiral/roadrunner-worker": "^3.6" + }, + "suggest": { + "ext-excimer": "Enable Sentry profiling with the Excimer PHP extension.", + "monolog/monolog": "Allow sending log messages to Sentry by using the included Monolog handler." + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Sentry\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sentry", + "email": "accounts@sentry.io" + } + ], + "description": "PHP SDK for Sentry (http://sentry.io)", + "homepage": "http://sentry.io", + "keywords": [ + "crash-reporting", + "crash-reports", + "error-handler", + "error-monitoring", + "log", + "logging", + "profiling", + "sentry", + "tracing" + ], + "support": { + "issues": "https://github.com/getsentry/sentry-php/issues", + "source": "https://github.com/getsentry/sentry-php/tree/4.38.0" + }, + "funding": [ + { + "url": "https://sentry.io/", + "type": "custom" + }, + { + "url": "https://sentry.io/pricing/", + "type": "custom" + } + ], + "time": "2026-11-19T10:49:48+00:00", + "published-time": "2026-11-19T11:52:05+00:00" + }, { "name": "socialiteproviders/discord", "version": "4.2.0", @@ -9486,6 +9646,71 @@ }, "time": "2024-04-01T01:15:35+00:00" }, + { + "name": "spatie/backtrace", + "version": "1.8.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/backtrace.git", + "reference": "8ffe78be5ed355b5009e3dd989d183433e9a5adc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/8ffe78be5ed355b5009e3dd989d183433e9a5adc", + "reference": "8ffe78be5ed355b5009e3dd989d183433e9a5adc", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "ext-json": "*", + "laravel/serializable-closure": "^1.3 || ^2.0", + "phpunit/phpunit": "^9.3 || ^11.4.3", + "spatie/phpunit-snapshot-assertions": "^4.2 || ^5.1.6", + "symfony/var-dumper": "^5.1|^6.0|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Backtrace\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van de Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A better backtrace", + "homepage": "https://github.com/spatie/backtrace", + "keywords": [ + "Backtrace", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/backtrace/issues", + "source": "https://github.com/spatie/backtrace/tree/1.8.2" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2026-03-11T13:48:28+00:00", + "published-time": "2026-03-11T13:53:28+00:00" + }, { "name": "spatie/browsershot", "version": "5.4.2", @@ -9698,6 +9923,150 @@ ], "time": "2022-04-22T08:51:55+00:00" }, + { + "name": "spatie/flare-client-php", + "version": "3.6.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/flare-client-php.git", + "reference": "cf6800b12bfe694561436024f648856dd05a1752" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/cf6800b12bfe694561436024f648856dd05a1752", + "reference": "cf6800b12bfe694561436024f648856dd05a1752", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "guzzlehttp/guzzle": "^7.9|^8.0", + "monolog/monolog": "^3.0", + "php": "^8.1", + "psr/container": "^2.0", + "spatie/backtrace": "^1.8.0", + "spatie/flare-daemon": "^0.3", + "symfony/console": "^5.2|^6.0|^7.0|^8.0", + "symfony/http-foundation": "^5.2|^6.0|^7.0|^8.0", + "symfony/mime": "^5.2|^6.0|^7.0|^8.0", + "symfony/process": "^5.2|^6.0|^7.0|^8.0", + "symfony/var-dumper": "^5.2|^6.0|^7.0|^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.89", + "pestphp/pest": "^2.36.0|^3.0|^4.0", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "spatie/invade": "^2.1", + "spatie/pest-plugin-snapshots": "^2.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Spatie\\FlareClient\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Send PHP errors to Flare", + "homepage": "https://github.com/spatie/flare-client-php", + "keywords": [ + "exception", + "flare", + "reporting", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/flare-client-php/issues", + "source": "https://github.com/spatie/flare-client-php/tree/3.6.1" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2026-11-13T07:45:39+00:00", + "published-time": "2026-11-13T07:46:10+00:00" + }, + { + "name": "spatie/flare-daemon", + "version": "0.3.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/flare-daemon.git", + "reference": "a60de5a2f8b4e6796a8d429f9ec95d9d3f0cc00f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/flare-daemon/zipball/a60de5a2f8b4e6796a8d429f9ec95d9d3f0cc00f", + "reference": "a60de5a2f8b4e6796a8d429f9ec95d9d3f0cc00f", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.2", + "ext-zlib": "*", + "php": "^8.1" + }, + "require-dev": { + "laravel/pint": "^1.0", + "pestphp/pest": "^3.0 || ^4.0", + "phpstan/phpstan": "^2.1", + "react/async": "^4.3", + "spatie/flare-daemon-runtime": "*", + "spatie/ray": "^1.28", + "symfony/process": "^8.1" + }, + "bin": [ + "bin/flare-daemon" + ], + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\FlareDaemon\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alex Vanderbist", + "email": "alex@spatie.be", + "role": "Developer" + } + ], + "description": "Local HTTP daemon for asynchronous Flare delivery", + "homepage": "https://github.com/spatie/flare-daemon", + "keywords": [ + "error-tracking", + "flare", + "flare-daemon", + "performance-monitoring", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/flare-daemon/issues", + "source": "https://github.com/spatie/flare-daemon/tree/0.3.2" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2026-11-06T12:24:47+00:00", + "published-time": "2026-11-06T12:25:50+00:00" + }, { "name": "spatie/fork", "version": "1.2.8", @@ -14410,7 +14779,7 @@ "dist": { "type": "path", "url": "..", - "reference": "08e34d95ce7fc7be10541a7439e91baddeebfbbe" + "reference": "2c655592ada2ef0011eb7b9d649869bfa94a238c" }, "require": { "illuminate/console": "^11.0|^12.0|^13.0",