Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpunit Query Count Assertions Laravel Package

mattiasgeniar/phpunit-query-count-assertions

Add PHPUnit/Pest assertions to count and analyze SQL queries in tests. Catch N+1 issues, duplicate queries, slow queries, missing indexes (EXPLAIN), row count problems, and Laravel lazy loading. Supports Laravel 11/12, Doctrine DBAL 4, and Phalcon 6+.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
meyfa/phpunit-assert-gd 0.88 PHPUnit assertions for comparing images via GD. Assert two images (file paths or in-memory GD resources) are identical or differ, with optional similarity thresholds. Provides a simple trait for test cases plus a manual constraint for advanced matching. 12 12 5 3K 0 4.8 32.3 MIT 1 year ago
View on GitHub
codeception/verify 0.87 Tiny BDD-style assertion wrapper for PHPUnit/Codeception. Use verify() and Verify::Array/Callable for readable, chainable expectations like equals, contains, greater/less, true/false/null, empty/notEmpty, throws/doesNotThrow—closer to natural language. 146 149 26 172K 1 15.2 44.8 MIT 8 months ago
View on GitHub
matthiasnoback/phpunit-test-service-container 0.87 — 1 1 4 368 0 6.3 32.4 MIT 1 year ago
View on GitHub
Context7
graham-campbell/testbench 0.87 Laravel TestBench by Graham Campbell provides testing functionality for Laravel packages, built on PHPUnit, Mockery, Orchestral Testbench, and Laravel Testbench Core. Supports PHP 7.4-8.5, PHPUnit 9-11, and Laravel 8-13. 0 51 — 4K — 9.3 50.1 — —
View on GitHub
phpstan/phpstan-phpunit 0.86 PHPStan extension for PHPUnit that improves mock object and assert type inference, supports MockBuilder and phpDoc intersections, and adds optional strict rules for more precise, framework-aware static analysis. 546 550 58 6M 34 44.3 79.3 MIT 1 month ago
View on GitHub
spatie/phpunit-snapshot-assertions 0.86 Snapshot testing for PHPUnit: assert values match stored snapshots for JSON, strings, arrays, and more. Snapshots are created automatically on first run and compared on subsequent runs. 698 702 76 991K 0 24.8 47.3 MIT 6 months ago
View on GitHub
bovigo/assert 0.85 Functional-style assertions for PHP unit tests. Use assertThat(value, predicate[, description]) for readable checks with helpful failure messages. Integrates with PHPUnit via AssertionFailure extending AssertionFailedError. Requires PHP 8.3+. 13 13 5 724 1 11.5 24.9 BSD-3-Clause 11 months ago
View on GitHub
jasonmccreary/laravel-test-assertions 0.85 Adds a trait of extra PHPUnit assertions for Laravel testing. Confirm controllers/actions and named routes use specific FormRequest validation or middleware, compare validation rules (subset or exact), check rule instances, and assert view data is explicitly null. 349 351 38 140K 2 17.5 38.6 — 7 months ago
View on GitHub
phpunit/php-invoker 0.84 phpunit/php-invoker is a small utility for safely invoking callables with time limits. Commonly used by PHPUnit to run tests and other code with a timeout, helping prevent hangs while keeping execution and error handling predictable. 1,352 1,359 18 15M 1 13.8 58.2 BSD-3-Clause 9 months ago
View on GitHub
phperf/phpunit 0.83 phperf/phpunit is a lightweight PHPUnit extension aimed at profiling and performance measurement during test runs. Add simple hooks to capture timing and resource usage so you can spot slow tests and track performance regressions over time. 0 0 0 193 0 0.9 31.2 NOASSERTION 4 years ago
View on GitHub
Context7
sempro/phpunit-pretty-print 0.83 Pretty-print PHPUnit test output for cleaner, more readable console runs. sempro/phpunit-pretty-print adds a nicer, compact format that highlights failures and progress, helping you scan results faster while keeping compatibility with standard PHPUnit workflows. 184 185 25 65K 3 4.3 35.8 MIT 5 years ago
View on GitHub
beyondcode/laravel-query-detector 0.83 Laravel N+1 Query Detector monitors your queries in real-time while you develop, alerting you whenever you should add eager loading to fix N+1 queries. Install it as a dev dependency via Composer; it auto-registers and helps boost your app's performance. 2,060 2,072 146 385K 4 30.5 34.9 MIT 7 months ago
View on GitHub
Context7
draw/tester 0.83 Tools for testing PHP apps: DataTester wraps PHPUnit assertions with a fluent, path-based API for arrays/objects. Includes PHPUnit extensions like CarbonReset to reset Carbon state between tests and SetUpAutowire to autowire test properties via attributes. 0 0 0 1K 0 0.0 43.0 MIT —
View on GitHub
eliashaeussler/phpunit-attributes 0.83 PHPUnit Attributes adds modern PHP 8 attributes to define PHPUnit tests, data providers, groups, dependencies and more in a clean, declarative way. Keep test classes readable and reduce annotation/docblock noise while staying compatible with PHPUnit workflows. 4 4 1 4K 1 11.5 43.3 GPL-3.0 7 months ago
View on GitHub
lastdragon-ru/phpunit-extensions 0.83 PHPUnit extensions for PHP projects, adding extra test utilities and helpers to streamline assertions, fixtures, and test setup. Designed to integrate cleanly with PHPUnit and improve developer productivity in automated testing workflows. 0 0 0 28 0 0.0 20.2 MIT —
View on GitHub
phpunit/dbunit 0.83 PHPUnit extension for database interaction testing. Provides DbUnit helpers for setting up database fixtures and asserting database state in tests. Install via Composer (dev) or PHAR. Note: this package is no longer maintained. 222 245 183 52K 9 5.0 25.2 NOASSERTION 11 years ago
View on GitHub
rregeer/phpunit-coverage-check 0.83 — 60 62 16 132K 2 4.1 46.7 MIT 7 years ago
View on GitHub
phpbench/phpbench 0.82 PHPBench is a benchmark runner for PHP, analogous to PHPUnit but measuring performance rather than correctness. It repeats code, samples iterations in isolated processes, and offers customizable reports, baseline storage and comparison, memory tracking, and assertions to catch regressions. 2,028 2,022 132 672K 29 46.1 52.8 MIT 4 months ago
View on GitHub
Context7
rawr/phpunit-data-provider 0.82 PHPUnit data provider helper for PHP tests. Simplifies building and organizing datasets, supports readable, reusable providers, and makes parameterized tests easier to maintain. Works with PHPUnit to generate cases cleanly and consistently. 66 66 5 29K 2 2.2 36.6 MIT 2 years ago
View on GitHub
supliu/laravel-query-monitor 0.82 — 284 285 39 705 4 3.8 8.8 — —
View on GitHub
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource