PHPackages                             stayallive/lighthouse-graphql-hive - 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. stayallive/lighthouse-graphql-hive

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

stayallive/lighthouse-graphql-hive
==================================

Performance monitoring Lighthouse with GraphQL Hive.

v1.1.1(1y ago)2223.3k↓40%1[2 issues](https://github.com/stayallive/lighthouse-graphql-hive/issues)[1 PRs](https://github.com/stayallive/lighthouse-graphql-hive/pulls)MITPHPPHP ^8.1CI passing

Since Jun 10Pushed 1y ago3 watchersCompare

[ Source](https://github.com/stayallive/lighthouse-graphql-hive)[ Packagist](https://packagist.org/packages/stayallive/lighthouse-graphql-hive)[ Docs](https://github.com/stayallive/lighthouse-graphql-hive)[ GitHub Sponsors](https://github.com/stayallive)[ RSS](/packages/stayallive-lighthouse-graphql-hive/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (7)Used By (0)

Lighthouse GraphQL Hive
=======================

[](#lighthouse-graphql-hive)

[![Latest Version](https://camo.githubusercontent.com/125de4455b1ee5574410e726780983c436ceedcc0989ae52105725e112c58681/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73746179616c6c6976652f6c69676874686f7573652d6772617068716c2d686976652e7376673f7374796c653d666c61742d737175617265)](https://github.com/stayallive/lighthouse-graphql-hive/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/73f8d98b7feb4a25e6d9bb906c480244582b10b9112326106760bcd612586a51/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73746179616c6c6976652f6c69676874686f7573652d6772617068716c2d686976652f63692e79616d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/stayallive/lighthouse-graphql-hive/actions/workflows/ci.yaml)[![Total Downloads](https://camo.githubusercontent.com/ff819ba175f85897c2b2eacdb4eae5f93983d8c3f5d34176c0e957d39d43f30d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73746179616c6c6976652f6c69676874686f7573652d6772617068716c2d686976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stayallive/lighthouse-graphql-hive)

[GraphQL Hive](https://graphql-hive.com/) can measure and collect data against all your [GraphQL](https://graphql.org/) operations and generate analytics on them.

This package aims to integrate [GraphQL Hive](https://graphql-hive.com/) with [Lighthouse](https://lighthouse-php.com/), a [GraphQL](https://graphql.org/) server for [Laravel](https://laravel.com/).

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

[](#installation)

```
composer require stayallive/lighthouse-graphql-hive
```

Add the following snippet to your `config/services.php` file:

```
    'graphqlhive' => [
        'enabled'   => env('GRAPHQL_HIVE_ENABLED', false),
        'token'     => env('GRAPHQL_HIVE_TOKEN'),
        'submitter' => env('GRAPHQL_HIVE_SUBMITTER'),
        'queue'     => env('GRAPHQL_HIVE_QUEUE'),
    ],
```

In your `.env` configure at least the following:

```
GRAPHQL_HIVE_ENABLED=true
GRAPHQL_HIVE_TOKEN=
```

*Read more about how to obtain a GraphQL Hive token [here](https://docs.graphql-hive.com/features/tokens).*

Submitters
----------

[](#submitters)

A submitter is the code that runs to aggregate and/or send the operation data collected to the [GraphQL Hive](https://graphql-hive.com/) API.

There are 2 submitters currently supported, we default to using the Queue submitter if none is configured:

### Queue (default)

[](#queue-default)

```
GRAPHQL_HIVE_SUBMITTER=Stayallive\Lighthouse\GraphQLHive\Submitter\Queue\Submitter
```

This submitter will push every operation to a queued job, the job will send every operation to [GraphQL Hive](https://graphql-hive.com/).

You can configure the queue used to dispatch the jobs too by setting the `GRAPHQL_HIVE_QUEUE` environment variable to the name of the queue.

*Note: On high volumes this might cause issues with many queued jobs being pushed and being rate limited by the GraphQL Hive server.*

### Redis

[](#redis)

```
GRAPHQL_HIVE_SUBMITTER=Stayallive\Lighthouse\GraphQLHive\Submitter\Redis\Submitter
```

This submitter will push every operation to a Redis list, a scheduled command will run every minut to batch send the operation to [GraphQL Hive](https://graphql-hive.com/).

*Note: This submitter requires a configured Redis connection.*

Usage
-----

[](#usage)

You should only have to install this package to benefit, unless you have disabled package auto discovery, in that case you will need to add the service provider to your `config/app.php` manually.

You can optionally add the `graphql-client` header to your requests in the format `name:version` (like: `my-app:1.2.3`) to see client stats in the [GraphQL Hive](https://graphql-hive.com/) dashboard. You can also opt to set `x-graphql-client-name` and `x-graphql-client-version` headers instead.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this package, please send an e-mail to Alex Bouma at `alex+security@bouma.me`. All security vulnerabilities will be swiftly addressed.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance44

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~183 days

Total

6

Last Release

412d ago

PHP version history (2 changes)v1.0.0PHP ^8.0.2

v1.0.2PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1090754?v=4)[Alex Bouma](/maintainers/stayallive)[@stayallive](https://github.com/stayallive)

---

Top Contributors

[![stayallive](https://avatars.githubusercontent.com/u/1090754?v=4)](https://github.com/stayallive "stayallive (21 commits)")

---

Tags

graphqllaravellighthousemonitoringperformancelaravelmonitoringgraphqlperformancelighthouse

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/stayallive-lighthouse-graphql-hive/health.svg)

```
[![Health](https://phpackages.com/badges/stayallive-lighthouse-graphql-hive/health.svg)](https://phpackages.com/packages/stayallive-lighthouse-graphql-hive)
```

###  Alternatives

[tobiasdierich/gauge

An easy to use application performance monitor.

14413.1k](/packages/tobiasdierich-gauge)[scoutapp/scout-apm-laravel

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

23831.3k](/packages/scoutapp-scout-apm-laravel)[yakovenko/laravel-lighthouse-graphql-multi-schema

A Laravel package that provides multi-schema support for Lighthouse GraphQL.

1562.5k](/packages/yakovenko-laravel-lighthouse-graphql-multi-schema)

PHPackages © 2026

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