PHPackages                             bbs-lab/lighthouse-persisted-queries - 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. bbs-lab/lighthouse-persisted-queries

ActiveLibrary

bbs-lab/lighthouse-persisted-queries
====================================

Laravel Lighthouse middleware to handle GraphQL persisted queries

v1.0.0(4y ago)14.5k↓100%MITPHPPHP ^7.4|^8.0

Since May 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/BBS-Lab/lighthouse-persisted-queries)[ Packagist](https://packagist.org/packages/bbs-lab/lighthouse-persisted-queries)[ Docs](https://github.com/bbs-lab/lighthouse-persisted-queries)[ RSS](/packages/bbs-lab-lighthouse-persisted-queries/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (4)Used By (0)

Lighthouse persisted queries middleware
=======================================

[](#lighthouse-persisted-queries-middleware)

[![Latest Version on Packagist](https://camo.githubusercontent.com/818f810c0672952891fe591bae1f21c998a5a87a7d133dc5560dbe3bdca513e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6262732d6c61622f6c69676874686f7573652d7065727369737465642d717565726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bbs-lab/lighthouse-persisted-queries)[![GitHub Tests Action Status](https://camo.githubusercontent.com/86ec8d9ada56cc8336944bfc2e5efe78ffc30d6630c3284fc39d87958a6f1335/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6262732d6c61622f6c69676874686f7573652d7065727369737465642d717565726965732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/bbs-lab/lighthouse-persisted-queries/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8e2a3d11738cbd09b50f0941676c6ff005499108810e825acab60bcd1707fc01/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6262732d6c61622f6c69676874686f7573652d7065727369737465642d717565726965732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/bbs-lab/lighthouse-persisted-queries/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f1b5a6b214704d0cdd4d31c77de66d200d181da5896f19323c11e83eb06f9bfb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6262732d6c61622f6c69676874686f7573652d7065727369737465642d717565726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bbs-lab/lighthouse-persisted-queries)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

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

[](#installation)

You can install the package via composer:

```
composer require bbls-lab/lighthouse-persisted-queries
```

You can publish the config file with:

```
php artisan vendor:publish --provider="BBSLab\LighthousePersistedQueries\LighthousePersistedQueriesServiceProvider" --tag="lighthouse-persisted-queries-config"
```

This is the contents of the published config file:

```
return [
    'cache' => [

        'prefix' => env('LPQ_CACHE_PREFIX', 'persisted_query'),

        'ttl' => env('LPQ_CACHE_TTL', 0),

        'max-age' => env('LPQ_CACHE_MAX_AGE', 86400),

    ],

    'excluded_operations' => [
        //
    ],

];
```

Usage
-----

[](#usage)

To handle persisted queries you add the `BBSLab\LighthousePersistedQueries\PersistsQuery` middleware to the lighthouse middleware configuration section.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Mikaël Popowicz](https://github.com/mikaelpopowicz)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

1538d ago

Major Versions

v0.1.0 → v1.0.02022-02-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1edc17683ed39a2cc6dbe453c2c5aaa63468fc5b54f13941f260ebe260da211?d=identicon)[Kezho](/maintainers/Kezho)

---

Top Contributors

[![mikaelpopowicz](https://avatars.githubusercontent.com/u/5689944?v=4)](https://github.com/mikaelpopowicz "mikaelpopowicz (19 commits)")

---

Tags

laravellighthouse-persisted-queries

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bbs-lab-lighthouse-persisted-queries/health.svg)

```
[![Health](https://phpackages.com/badges/bbs-lab-lighthouse-persisted-queries/health.svg)](https://phpackages.com/packages/bbs-lab-lighthouse-persisted-queries)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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