PHPackages                             ryanhellyer/laravel-production-stats - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. ryanhellyer/laravel-production-stats

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

ryanhellyer/laravel-production-stats
====================================

Production-ready performance monitoring for Laravel - automatically track and inject performance statistics into responses

1.1(5mo ago)017GPL-2.0PHPPHP ^8.2

Since Dec 7Pushed 5mo agoCompare

[ Source](https://github.com/ryanhellyer/laravel-production-stats)[ Packagist](https://packagist.org/packages/ryanhellyer/laravel-production-stats)[ Docs](https://github.com/ryanhellyer/laravel-production-stats)[ RSS](/packages/ryanhellyer-laravel-production-stats/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

Laravel Production Stats
========================

[](#laravel-production-stats)

Production-ready performance monitoring for Laravel applications. Automatically injects performance statistics as HTML comments—lightweight, secure, and production-safe.

For years I've added basic performance stats to WordPress sites as HTML comments in the footer. They're always available in the HTML source, don't bother users, and help determine if a site is cached and how quickly pages generate. **When I moved to Laravel, I missed this functionality** and kept manually adding stats to templates. This package automates that process.

**Note:** While this package injects into your pages, is typically not sensitive information, you shouldn't use this package if you don't want site visitors being able to see this data.

Features
--------

[](#features)

- **Automatic tracking** - Measures page load time and generation timestamp
- **Production-ready** - Unlike development-only tools, safe for production use
- **Non-intrusive** - Injects as HTML comments, invisible to end users
- **Safe** - Only processes HTML responses, won't break JSON/XML
- **Zero configuration** - Works immediately after installation

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 10, 11, or 12

Installation
------------

[](#installation)

```
composer require ryanhellyer/laravel-production-stats
```

Usage
-----

[](#usage)

No configuration needed. The package automatically tracks page load times and generation timestamps, injecting them as HTML comments before the closing `` tag.

### Example Output

[](#example-output)

```

```

View in your browser's page source.

Testing
-------

[](#testing)

Run the test suite with:

```
composer test
```

What Gets Tracked
-----------------

[](#what-gets-tracked)

- **Page load time** - Time to render from Laravel bootstrap to response (milliseconds)
- **Generation timestamp** - When the page was generated

Changelog
---------

[](#changelog)

### 1.0

[](#10)

- Initial package release
- Automatic page load time tracking
- Generation timestamp display

License
-------

[](#license)

GPL-2.0 - See [LICENSE](LICENSE) file for details.

Author
------

[](#author)

**Ryan Hellyer** -  | [GitHub](https://github.com/ryanhellyer)

Support
-------

[](#support)

Ping me via ryan.hellyer.kiwi/contact if you encounter any problems.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance73

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

154d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/344653ee76e4fc90cb406062cd8a6fc04977571f5eb09af7ae58736249d65f98?d=identicon)[ryanhellyer](/maintainers/ryanhellyer)

---

Top Contributors

[![ryanhellyer](https://avatars.githubusercontent.com/u/430544?v=4)](https://github.com/ryanhellyer "ryanhellyer (13 commits)")

---

Tags

laravelmonitoringperformancestatsproductionload-time

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ryanhellyer-laravel-production-stats/health.svg)

```
[![Health](https://phpackages.com/badges/ryanhellyer-laravel-production-stats/health.svg)](https://phpackages.com/packages/ryanhellyer-laravel-production-stats)
```

###  Alternatives

[jackwh/laravel-new-relic

Monitor your Laravel application performance with New Relic

112827.2k](/packages/jackwh-laravel-new-relic)[scoutapp/scout-apm-laravel

Scout Application Performance Monitoring Agent - https://scoutapm.com

23831.3k](/packages/scoutapp-scout-apm-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
