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. striebwj/horizon-stats

ActiveLibrary

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

A horizon stats

v0.1.1(11mo ago)351MITPHPPHP &gt;=7.2CI passing

Since Jul 4Pushed 11mo 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 today

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

28

—

LowBetter than 54% of packages

Maintenance52

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

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

331d 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

[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[lkaemmerling/laravel-horizon-prometheus-exporter

A small package to gain and export long time information from Laravel &amp; Horizon for Prometheus.

1602.0M](/packages/lkaemmerling-laravel-horizon-prometheus-exporter)[huangdijia/laravel-horizon-restart

Horizon Restart for Laravel.

23103.9k](/packages/huangdijia-laravel-horizon-restart)[renoki-co/horizon-exporter

Export Laravel Horizon metrics using this Prometheus exporter.

24152.7k](/packages/renoki-co-horizon-exporter)[servocoder/lumen-horizon

Commands and code-driven configuration for Lumen queues.

2679.4k](/packages/servocoder-lumen-horizon)[carsguide/lumen-horizon

Commands and code-driven configuration for Lumen queues.

1050.6k](/packages/carsguide-lumen-horizon)

PHPackages © 2026

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