PHPackages                             alex-frolov/query-guard - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. alex-frolov/query-guard

ActiveLibrary[Testing &amp; Quality](/categories/testing)

alex-frolov/query-guard
=======================

Detects N+1, duplicate and otherwise problematic SQL queries during a regular PHPUnit run

v0.1.0(today)04↑2900%MITPHP &gt;=8.2

Since Aug 27Compare

[ Source](https://github.com/alex-frolov/query-guard)[ Packagist](https://packagist.org/packages/alex-frolov/query-guard)[ Docs](https://github.com/alex-frolov/query-guard)[ RSS](/packages/alex-frolov-query-guard/feed)WikiDiscussions Synced today

READMEChangelogDependencies (9)Versions (2)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/alex-frolov/query-guard).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance100

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d891460a2475f5210f451f430904efa84116c098faa0febf8d105b6b59100f0?d=identicon)[aleksander\_frolov](/maintainers/aleksander_frolov)

---

Tags

testingphpunitperformancedoctrinesqleloquentqueryexplainn-plus-one

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/alex-frolov-query-guard/health.svg)

```
[![Health](https://phpackages.com/badges/alex-frolov-query-guard/health.svg)](https://phpackages.com/packages/alex-frolov-query-guard)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k142.8M1.1k](/packages/brianium-paratest)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69720.4M691](/packages/spatie-phpunit-snapshot-assertions)[socialblue/laravel-query-adviser

With Laravel Query Adviser you can get more insights into the SQL queries created by Eloquent models used in your app. It logs the queries used by your application and provides a helpful overview of the SQL queries. You can rerun the SQL query to analyze the database impact or copy the SQL query to your clipboard. The handy card view allows you to quickly point out the pain points of your application's SQL queries.

203.9k](/packages/socialblue-laravel-query-adviser)[lastzero/test-tools

Increases testing productivity by adding a service container and self-initializing fakes to PHPUnit

2244.5k13](/packages/lastzero-test-tools)

PHPackages © 2026

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