PHPackages                             bright-alley/lighthouse-apollo - 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. [API Development](/categories/api)
4. /
5. bright-alley/lighthouse-apollo

AbandonedArchivedLibrary[API Development](/categories/api)

bright-alley/lighthouse-apollo
==============================

Integration to upload information from Laravel Lighthouse to Apollo Studio.

v3.0(2y ago)814.7k5[1 issues](https://github.com/brightalley/lighthouse-apollo/issues)[1 PRs](https://github.com/brightalley/lighthouse-apollo/pulls)MITPHPPHP &gt;=8.0

Since Oct 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/brightalley/lighthouse-apollo)[ Packagist](https://packagist.org/packages/bright-alley/lighthouse-apollo)[ RSS](/packages/bright-alley-lighthouse-apollo/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (7)Versions (34)Used By (0)

Laravel Lighthouse Apollo Integration
=====================================

[](#laravel-lighthouse-apollo-integration)

This library allows integrating your Lighthouse GraphQL project with Apollo Studio, sending tracing statistics and allowing you to send your schema to Apollo for breaking changes notifications.

Lighthouse requirements
-----------------------

[](#lighthouse-requirements)

This library is tested with Lighthouse 6.

For Lighthouse 4.x, use version `1.x` of this library. For Lighthouse 5.x, use version `2.x` of this library.

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

[](#installation)

First, install the Composer package:

`composer require bright-alley/lighthouse-apollo`

Next, publish the config file and adjust it as desired:

`php artisan vendor:publish --provider="BrightAlley\LighthouseApollo\ServiceProvider"`

The service provider for this package is automatically registered. If you have disabled auto-discovery of service providers, make sure to add `\BrightAlley\LighthouseApollo\ServiceProvider`to your service providers. Lighthouse's TracingServiceProvider is automatically registered. By default, the tracing results are stripped from the actual GraphQL response when not in debug mode.

When using the redis or database send tracing mode (*highly recommended for production usage*), make sure to add the `lighthouse-apollo:publish-tracing` artisan command to your console kernel's schedule, so it runs frequently to send queued trace results to Apollo. You can adjust the schedule to run more or less often based on your traffic volume.

```
public function schedule(\Illuminate\Console\Scheduling\Schedule $schedule)
{
    $schedule->command('lighthouse-apollo:submit-tracing')
        ->everyMinute();
}
```

Client tracing
--------------

[](#client-tracing)

You can gather information about which clients are calling your GraphQL API. If you have control over the clients, add the `x-apollo-client-name` and `x-apollo-client-version`headers to your GraphQL requests, and they will be gathered and sent to Apollo Studio.

If you need more control over client tracing on the server side, you can create your own custom logic by implementing the `BrightAlley\LighthouseApollo\Contracts\ClientInformationExtractor`interface, and binding your own implementation to the app container in your service provider, like so:

```
$this->app->bind(ClientInformationExtractor::class, MyCustomClientInformationExtractor::class);
```

Development
-----------

[](#development)

Protobuf is used for sending traces to Apollo Studio. To generate new stubs, use the following command:

`protoc -I resources --php_out=generated/ resources/*.proto`

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 82.4% 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 ~31 days

Recently: every ~117 days

Total

33

Last Release

1065d ago

Major Versions

v1.5.5 → v2.0.12021-11-16

v2.5 → v3.02023-08-04

PHP version history (2 changes)v1PHP &gt;=7.4

v3.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/33e827509a7fa4b6ad18dfacc6cf7e6c1a6cb58b9b61b83787e0940a371ac70c?d=identicon)[MaartenStaa](/maintainers/MaartenStaa)

---

Top Contributors

[![pyrou](https://avatars.githubusercontent.com/u/235005?v=4)](https://github.com/pyrou "pyrou (14 commits)")[![peterkeijsers](https://avatars.githubusercontent.com/u/3602913?v=4)](https://github.com/peterkeijsers "peterkeijsers (2 commits)")[![MaartenStaa](https://avatars.githubusercontent.com/u/2743160?v=4)](https://github.com/MaartenStaa "MaartenStaa (1 commits)")

---

Tags

apollographqllaravellighthouseperformanceschemastudiolaravelgraphqlperformanceMetricstracinglighthouseapollo

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bright-alley-lighthouse-apollo/health.svg)

```
[![Health](https://phpackages.com/badges/bright-alley-lighthouse-apollo/health.svg)](https://phpackages.com/packages/bright-alley-lighthouse-apollo)
```

###  Alternatives

[nuwave/lighthouse

A framework for serving GraphQL from Laravel

3.5k11.8M117](/packages/nuwave-lighthouse)[yakovenko/laravel-lighthouse-graphql-multi-schema

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

16134.5k](/packages/yakovenko-laravel-lighthouse-graphql-multi-schema)[api-platform/laravel

API Platform support for Laravel

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

PHPackages © 2026

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