psalm/plugin-phpunit
A Psalm plugin for PHPUnit that improves static analysis of test suites by teaching Psalm about PHPUnit-specific APIs, assertions, and mocking. Install with Composer, enable via psalm-plugin, and get more accurate type checking in your tests. Requires Psalm v4 or later.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpyh/psalm-tester | 0.89 | Run Psalm assertions from .phpt files. Write phpt tests with --FILE-- and --EXPECT/EXPECTF-- for traces and errors, then execute them via a PHPUnit test suite using PsalmTester. Supports per-suite default Psalm args and per-test --ARGS-- overrides. | 2 | 2 | 1 | 955 | 1 | 0.4 | 34.6 | MIT | 2 years ago | |
| alies-dev/psalm-tester | 0.88 | Run Psalm assertions and traces as phpt test files inside PHPUnit. Write --FILE--/--EXPECT-- fixtures, use EXPECTF for flexible matching, pass custom Psalm arguments globally or per test via --ARGS--, and skip tests conditionally with --SKIPIF--. | 1 | 1 | 0 | 11K | 3 | 19.5 | 60.2 | MIT | 1 month ago | |
| psalm/psalm-plugin-api | 0.88 | Psalm plugin API providing interfaces and helpers to build and integrate custom plugins with the Psalm static analysis tool, enabling extensions such as new checks, type providers, and project-specific analysis behavior. | 1 | 0 | 0 | 262K | 0 | 0.0 | 55.3 | — | — | |
| psalm/plugin-mockery | 0.87 | A Psalm plugin that adds static analysis support for the Mockery mocking framework, helping Psalm understand mock objects, expectations, and method calls in your tests. Install via Composer and enable it with psalm-plugin for more accurate type checking. | 11 | 11 | 9 | 234K | 4 | 26.4 | 66.4 | MIT | 1 week ago | |
| psalm/plugin-laravel | 0.87 | Laravel static analysis with built-in taint-based security scanning: traces user input from request to sink to catch SQL injection, XSS, shell injection, file traversal, SSRF, open redirects and timing-unsafe secret comparisons. Runs locally and in CI, no account or cloud upload. | 348 | 346 | 79 | 142K | 114 | 59.1 | 69.7 | MIT | 1 day ago | |
| orklah/psalm-insane-comparison | 0.87 | Psalm plugin that flags “insane” string-to-number loose comparisons that change behavior in PHP 8 (RFC: Saner string to number comparisons). Helps you find risky == checks like non-empty string vs 0 before upgrading, and suggests safer typing/casts. | 34 | 35 | 4 | 9K | 0 | 4.3 | 33.5 | MIT | 1 year ago | |
| boesing/psalm-plugin-stringf | 0.86 | A Psalm plugin that statically validates printf and sprintf format strings, checking that placeholders match the number and types of arguments passed. Mismatches are caught during analysis instead of at runtime, using Psalm's type inference to verify format specifiers across your codebase. | 12 | — | 2 | — | 6 | 2.7 | 5.3 | NOASSERTION | 3 years ago |
|
| php-standard-library/psalm-plugin | 0.86 | Psalm plugin for PHP Standard Library (PSL) that improves static analysis of PSL Type specifications. It gives Psalm precise inferred types for shapes and coerce results, such as exact array shapes instead of broad unions. Install with Composer as a dev dependency and enable via psalm-plugin. | 25 | 25 | 7 | 39K | 1 | 12.5 | 46.6 | MIT | 7 months ago | |
| psalm/plugin-symfony | 0.85 | Psalm plugin for Symfony that improves static analysis by inferring container, parameter, console, Doctrine repository, Request, HeaderBag, and Messenger types, plus Symfony taint analysis and service/parameter naming checks. | 242 | 241 | 68 | 252K | 33 | 42.5 | 61.7 | MIT | 4 days ago | |
| psalm/phar | 0.85 | Install Psalm as a standalone PHAR to avoid Composer dependency conflicts. psalm/phar lets you add Psalm to any project or CI environment without pulling in extra packages, keeping your dependency tree clean while still running Psalm reliably. | 26 | 27 | 4 | 96K | 9 | 6.7 | 51.2 | — | 5 years ago | |
| weirdan/doctrine-psalm-plugin | 0.85 | A Doctrine plugin for Psalm (v4/v5) that improves static analysis of Doctrine entities and repositories through better type inference. Install via Composer, then enable it with the psalm-plugin command. | 86 | 89 | 45 | 119K | 29 | 39.5 | 63.9 | — | 2 weeks ago |
How can I help you explore Laravel packages today?