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.1(1mo ago)025GPL-2.0PHPPHP ^8.2

Since Dec 7Pushed 1mo 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 today

READMEChangelog (1)Dependencies (10)Versions (4)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+

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.1.1 — 2026-05-17

[](#111--2026-05-17)

- Fixed composer.json dependencies and description punctuation

### 1.1 — 2025-12-07

[](#11--2025-12-07)

- Added PHPStan static analysis and fixed type issues
- Added PHP CodeSniffer and fixed code style
- Removed composer.lock from version tracking
- Added test script and documentation
- Added .gitignore
- Added PHPUnit tests

### 1.0 — 2025-12-07

[](#10--2025-12-07)

- 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

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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 ~80 days

Total

3

Last Release

49d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/430544?v=4)[Ryan Hellyer](/maintainers/ryanhellyer)[@ryanhellyer](https://github.com/ryanhellyer)

---

Top Contributors

[![ryanhellyer](https://avatars.githubusercontent.com/u/430544?v=4)](https://github.com/ryanhellyer "ryanhellyer (17 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)

PHPackages © 2026

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