About the Package
For years, I tucked performance stats into HTML comments in the footer. It's the perfect middle ground: invisible to users, but instantly available to developers checking if a page is cached or how fast the server responded.
When I moved to Laravel and Symfony, I found myself missing this lightweight approach. I wanted page generation times in production without installing heavy profiling suites or exposing sensitive data. Production Stats fills that gap for both frameworks.
Why Use It
Most profiling tools are designed strictly for local development. They're either too heavy for production or pose security risks. This package is built specifically for your live environment:
- Zero Configuration: Install it and it starts working immediately. Laravel auto-discovers the package; Symfony needs one line in bundles.php.
- Non-Intrusive: Stats are injected as simple HTML comments. No visible UI changes for your users.
- Production-Safe: Only processes HTML responses — your API, JSON, and XML feeds are never touched.
- Instant Verification: View the page source to see exactly how your app is performing in the real world.
What It Tracks
- Page generation times: Measures how long each request takes, displayed in milliseconds.
- Generation timestamp: Records when each page was generated.
Installation
Install via Composer:
composer require ryanhellyer/production-stats
Laravel auto-discovers the package — no further setup needed.
Symfony
Register the bundle in config/bundles.php:
return [
// ...
RyanHellyer\ProductionStats\Symfony\ProductionStatsBundle::class => ['all' => true],
];