PHPackages                             blissjaspis/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. [Database &amp; ORM](/categories/database)
4. /
5. blissjaspis/laravel-query-detector

ActiveLibrary[Database &amp; ORM](/categories/database)

blissjaspis/laravel-query-detector
==================================

Laravel N+1 Query Detector

1.1.1(10mo ago)49.7k↓50%MITPHPPHP ^8.1

Since May 1Pushed 1mo ago1 watchersCompare

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

READMEChangelog (4)Dependencies (5)Versions (4)Used By (0)

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

[](#laravel-n1-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](/asset/n+.png)](/asset/n+.png)

History
-------

[](#history)

This repository is a fork of [beyondcode/laravel-query-detector](https://github.com/beyondcode/laravel-query-detector). Why forked? The fork was created because the original package hadn't been updated to support Laravel 11, leaving users uncertain about its future compatibility. By forking the repository, aim to ensure that this essential package remains up-to-date and compatible with the latest Laravel versions.

Compatibility
-------------

[](#compatibility)

### Version 2.x (Current)

[](#version-2x-current)

This package version 2.x is only compatible with **Laravel 12 and above**.

### Version 1.x

[](#version-1x)

For **Laravel 11 and below**, please use version 1.x:

```
composer require blissjaspis/laravel-query-detector:^1.0 --dev
```

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

[](#installation)

You can install the package via composer:

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

The package will automatically register itself.

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

[](#documentation)

On going...

### 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)

- [Bliss Jaspis](https://github.com/blissjaspis)
- [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

43

—

FairBetter than 91% of packages

Maintenance75

Regular maintenance activity

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

3

Last Release

306d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c5c90080275353d1e65fc2655c85684598235849d2d4f98bef82f597cec5c6e?d=identicon)[jaspis](/maintainers/jaspis)

---

Top Contributors

[![blissjaspis](https://avatars.githubusercontent.com/u/19877298?v=4)](https://github.com/blissjaspis "blissjaspis (8 commits)")

---

Tags

laravel-query-detectorblissjaspis

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[beyondcode/laravel-query-detector

Laravel N+1 Query Detector

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

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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