PHPackages                             fxmonster/laravel-query-detector - 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. fxmonster/laravel-query-detector

ActiveLibrary

fxmonster/laravel-query-detector
================================

Laravel N+1 Query Detector

1.4.0(5y ago)06.7kMITPHPPHP ^7.1

Since Jul 15Pushed 5y agoCompare

[ Source](https://github.com/fxmonster/laravel-query-detector)[ Packagist](https://packagist.org/packages/fxmonster/laravel-query-detector)[ Docs](https://github.com/beyondcode/laravel-query-detector)[ RSS](/packages/fxmonster-laravel-query-detector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (17)Used By (0)

Laravel N+1 Query Detector
==========================

[](#laravel-n1-query-detector)

[![Latest Version on Packagist](https://camo.githubusercontent.com/62ba486abb09262b622a314220e4bb0172ee8287588ad0db7d0d5b0f3af3ef3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6265796f6e64636f64652f6c61726176656c2d71756572792d6465746563746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beyondcode/laravel-query-detector)[![Build Status](https://camo.githubusercontent.com/05773a375844ded13fc04ea9d382d444271e183a7edab1c32486842b5765bb03/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6265796f6e64636f64652f6c61726176656c2d71756572792d6465746563746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/beyondcode/laravel-query-detector)[![Quality Score](https://camo.githubusercontent.com/67abaf409431fe4d14c2d2e7344149955e62f6280e9ce017b6841a298bcb50f7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6265796f6e64636f64652f6c61726176656c2d71756572792d6465746563746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/beyondcode/laravel-query-detector)[![Total Downloads](https://camo.githubusercontent.com/107158b9e6c83754b1cbc42f6cad02c7a1a1a4bf19cacf54deab7a24505084b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6265796f6e64636f64652f6c61726176656c2d71756572792d6465746563746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beyondcode/laravel-query-detector)

The Laravel N+1 query detector helps you to increase your application's performance by reducing the number of queries it executes. This package monitors your queries in real-time, while you develop your application and notify you when you should add eager loading (N+1 queries).

[![Example alert](https://camo.githubusercontent.com/b8ab2382c04c43c7a8b5e25e496ce754298cf99536745ad82f6b9d58e04eccaa/68747470733a2f2f6265796f6e64636f2e64652f6769746875622f6e2b312f616c6572742e706e67)](https://camo.githubusercontent.com/b8ab2382c04c43c7a8b5e25e496ce754298cf99536745ad82f6b9d58e04eccaa/68747470733a2f2f6265796f6e64636f2e64652f6769746875622f6e2b312f616c6572742e706e67)

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

[](#installation)

You can install the package via composer:

```
composer require beyondcode/laravel-query-detector --dev
```

The package will automatically register itself.

Documentation
-------------

[](#documentation)

You can find the documentation on our [website](http://beyondco.de/docs/laravel-query-detector).

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

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

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Marcel Pociot](https://github.com/mpociot)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~53 days

Recently: every ~144 days

Total

16

Last Release

2055d ago

Major Versions

0.6.0 → 1.0.02018-12-13

### Community

Maintainers

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

---

Top Contributors

[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (48 commits)")[![plakhin](https://avatars.githubusercontent.com/u/25561058?v=4)](https://github.com/plakhin "plakhin (6 commits)")[![marcmascort](https://avatars.githubusercontent.com/u/3595718?v=4)](https://github.com/marcmascort "marcmascort (5 commits)")[![janpio](https://avatars.githubusercontent.com/u/183673?v=4)](https://github.com/janpio "janpio (3 commits)")[![Braunson](https://avatars.githubusercontent.com/u/577273?v=4)](https://github.com/Braunson "Braunson (3 commits)")[![XEngine](https://avatars.githubusercontent.com/u/6682465?v=4)](https://github.com/XEngine "XEngine (3 commits)")[![matthewnessworthy](https://avatars.githubusercontent.com/u/5653887?v=4)](https://github.com/matthewnessworthy "matthewnessworthy (2 commits)")[![pyr0hu](https://avatars.githubusercontent.com/u/4921742?v=4)](https://github.com/pyr0hu "pyr0hu (2 commits)")[![mr-feek](https://avatars.githubusercontent.com/u/5747667?v=4)](https://github.com/mr-feek "mr-feek (2 commits)")[![stevelacey](https://avatars.githubusercontent.com/u/289531?v=4)](https://github.com/stevelacey "stevelacey (2 commits)")[![fxmonster](https://avatars.githubusercontent.com/u/13942239?v=4)](https://github.com/fxmonster "fxmonster (2 commits)")[![erikverbeek](https://avatars.githubusercontent.com/u/21066218?v=4)](https://github.com/erikverbeek "erikverbeek (2 commits)")[![Perturbatio](https://avatars.githubusercontent.com/u/1007702?v=4)](https://github.com/Perturbatio "Perturbatio (1 commits)")[![Pr3d4dor](https://avatars.githubusercontent.com/u/13210429?v=4)](https://github.com/Pr3d4dor "Pr3d4dor (1 commits)")[![robburley](https://avatars.githubusercontent.com/u/8017920?v=4)](https://github.com/robburley "robburley (1 commits)")[![arie-piscator](https://avatars.githubusercontent.com/u/9989186?v=4)](https://github.com/arie-piscator "arie-piscator (1 commits)")[![zlodes](https://avatars.githubusercontent.com/u/1114387?v=4)](https://github.com/zlodes "zlodes (1 commits)")[![arubacao](https://avatars.githubusercontent.com/u/7462542?v=4)](https://github.com/arubacao "arubacao (1 commits)")[![BSN4](https://avatars.githubusercontent.com/u/199647?v=4)](https://github.com/BSN4 "BSN4 (1 commits)")[![crlcu](https://avatars.githubusercontent.com/u/1661844?v=4)](https://github.com/crlcu "crlcu (1 commits)")

---

Tags

beyondcodelaravel-query-detector

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fxmonster-laravel-query-detector/health.svg)

```
[![Health](https://phpackages.com/badges/fxmonster-laravel-query-detector/health.svg)](https://phpackages.com/packages/fxmonster-laravel-query-detector)
```

###  Alternatives

[beyondcode/laravel-query-detector

Laravel N+1 Query Detector

2.0k6.7M12](/packages/beyondcode-laravel-query-detector)[beyondcode/laravel-dump-server

Symfony Var-Dump Server for Laravel

1.6k42.6M165](/packages/beyondcode-laravel-dump-server)[beyondcode/laravel-self-diagnosis

Perform various self diagnosis tests on your Laravel application.

1.5k1.2M4](/packages/beyondcode-laravel-self-diagnosis)[beyondcode/laravel-mailbox

Handle incoming emails in your Laravel application.

1.1k1.0M4](/packages/beyondcode-laravel-mailbox)[beyondcode/laravel-server-timing

Add Server-Timing header information from within your Laravel apps.

5712.0M1](/packages/beyondcode-laravel-server-timing)[beyondcode/laravel-comments

Add comments to your Laravel application

605414.2k2](/packages/beyondcode-laravel-comments)

PHPackages © 2026

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