bvanhoekelen/performance
A PHP/Laravel performance measurement package that profiles execution time, memory usage, and database queries, then presents a clear report to help you spot bottlenecks and optimize your application.
Architecture fit
require-dev dependency in a conventional Laravel application.Integration feasibility
composer require with package auto-discovery, vendor:publish for config, and either middleware registration or direct facade calls. Realistic effort is measured in hours for a first working spike, not sprints.Technical risk
enable flag that defaults to false gives false confidence — teams believe they are measuring when they are not.Key questions for the spike
composer.json constraints for laravel/framework and php? Does it support Laravel 11/12 and PHP 8.2–8.4?DB::listen registration, enableQueryLog(), or a scoped listener? Is state reset per request, and is it Octane-safe?Verdict: Adopt as a developer-facing, environment-gated diagnostic. Do not deploy to production runtimes. Do not treat it as a substitute for production observability.
Stack fit
require-dev so it never ships in a production artifact; where a shared codebase needs it available in a staging image, gate the provider registration on app()->environment(['local','staging']) or config('app.debug') inside AppServiceProvider.enable flag to false in the committed config file and flip it only via local .env. Two independent gates (provider registration + config flag) is the correct defense-in-depth posture for a tool that prints SQL.Migration path
Compatibility
composer.json constraints against the actual composer.lock before committing. Version drift after a Laravel major upgrade is the most likely breakage point; add an upgrade-checklist item.api/* route groups.Sequencing
require-dev, publish config, measure a known-slow endpoint and one Artisan command. Answer the eight key questions above.enable => false; verify the package is inert in a production-env container build.local only; cover one HTTP route group and one batch command. Collect overhead numbers and false-positive/false-negative feedback.Maintenance
^ ranges in the near term), a calendar reminder to review releases quarterly, and an acknowledged fallback: Apache-2.0 permits an internal fork if upstream goes dormant. The recent release date is a positive signal but not a guarantee of cadence.Support
Scaling
APP_ENV=production) rather than relying on review.Failure modes
Ramp-up
How can I help you explore Laravel packages today?