PHPackages                             striebwj/horizon-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. striebwj/horizon-stats

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

striebwj/horizon-stats
======================

A horizon stats

v0.1.1(1y ago)351MITPHPPHP &gt;=7.2CI passing

Since Jul 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/striebwj/horizon-stats)[ Packagist](https://packagist.org/packages/striebwj/horizon-stats)[ RSS](/packages/striebwj-horizon-stats/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Horizon Stats
=============

[](#horizon-stats)

[![Run tests](https://github.com/striebwj/horizon-stats/actions/workflows/default.yml/badge.svg)](https://github.com/striebwj/horizon-stats/actions/workflows/default.yml)[![Format (PHP)](https://github.com/striebwj/horizon-stats/actions/workflows/FormatPHP.yml/badge.svg)](https://github.com/striebwj/horizon-stats/actions/workflows/FormatPHP.yml)

[![Packagist](https://camo.githubusercontent.com/5445abc5f567a64d4b6d4a0d50207e3de33f56b11edca175700fcf7ba59f8958/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737472696562776a2f686f72697a6f6e2d73746174732e737667)](https://packagist.org/packages/striebwj/horizon-stats)[![Packagist](https://camo.githubusercontent.com/5a64c60a5a0a6e25f6e8eefcfeac039c81dc36d4aec11206e4d83bca9bb7e28a/68747470733a2f2f706f7365722e707567782e6f72672f737472696562776a2f686f72697a6f6e2d73746174732f642f746f74616c2e737667)](https://packagist.org/packages/striebwj/horizon-stats)[![Packagist](https://camo.githubusercontent.com/ce9455d532485fe4ee48dbdcbd4f2b08c6bd90c51ea0bc4ce3d744ffb24a9577/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f737472696562776a2f686f72697a6f6e2d73746174732e737667)](https://packagist.org/packages/striebwj/horizon-stats)

Store long-term stats on the health of your Horizon Queues.

This package takes the Horizon snapshot data and stores it in the database, with easy to access models, so you can track your queue health over time.

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

[](#installation)

Install via composer

```
composer require striebwj/horizon-stats
```

### Publish package assets

[](#publish-package-assets)

```
php artisan vendor:publish --provider="striebwj\HorizonStats\ServiceProvider"
```

Update the `horizon-stats.php` config file to change the database names. Default is `horizon_stats`.

Usage
-----

[](#usage)

Once migrations are run, add the `horizon-stats:store` command to your `App\Console\Kernel.php` with the same time as your Horizon Snapshot command. **Be sure to add it before the snapshot**. It should look something like this:

```
// Horizon Tasks
$schedule->command('horizon-stats:store')->everyFiveMinutes(); // Before the snapshot
$schedule->command('horizon:snapshot')->everyFiveMinutes();
```

To-do List
----------

[](#to-do-list)

- Add tests
- Allow pushing storing in DB to a queue
- Add pruning?

Security
--------

[](#security)

If you discover any security related issues, please email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Wade Striebel](https://github.com/striebwj/horizon-stats)
- [All contributors](https://github.com/striebwj/horizon-stats/graphs/contributors)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance48

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.9% 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 ~1439 days

Total

2

Last Release

384d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a7b22d845281407c7f8017e545dc1c888071ddef531a490fe4a906ffe9c6fc6?d=identicon)[striebwj](/maintainers/striebwj)

---

Top Contributors

[![striebwj](https://avatars.githubusercontent.com/u/14165147?v=4)](https://github.com/striebwj "striebwj (10 commits)")[![Benjaminhu](https://avatars.githubusercontent.com/u/163124?v=4)](https://github.com/Benjaminhu "Benjaminhu (1 commits)")

---

Tags

laravelphpstatshorizon

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/striebwj-horizon-stats/health.svg)

```
[![Health](https://phpackages.com/badges/striebwj-horizon-stats/health.svg)](https://phpackages.com/packages/striebwj-horizon-stats)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M278](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M371](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M136](/packages/illuminate-cookie)

PHPackages © 2026

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