tomasvotruba/phpstan-bodyscan
PHPStan Bodyscan is a PHPStan extension that scans PHP method bodies for issues and surfaces them during static analysis. It helps catch body-level code problems early and fits easily into an existing PHPStan setup.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tomasvotruba/unused-public | 0.85 | PHPStan extension that finds unused public methods, properties, and constants by scanning calls across your codebase. Helps clean up dead APIs or spot members that should be private/protected. Supports gradual adoption via allowed % thresholds and excluding template-used methods. | 194 | 195 | 15 | 149K | 0 | 0.7 | 28.1 | MIT | — | |
| shipmonk/phpstan-baseline-per-identifier | 0.84 | Splits your PHPStan baseline into one file per error identifier, with a loader that includes them all. Keeps baselines readable and reduces merge conflicts. Works with PHPStan 2.x baseline generation plus a simple split command. | 93 | 95 | 4 | 252K | 2 | 22.9 | 55.3 | — | 1 month ago | |
| thecodingmachine/phpstan-strict-rules | 0.84 | Extra-strict PHPStan ruleset that flags risky or inconsistent PHP patterns beyond the default checks. Helps enforce cleaner, safer code by catching edge cases and enforcing best practices, with easy opt-in configuration for existing PHPStan setups. | 287 | 289 | 27 | 54K | 7 | 26.3 | 36.8 | — | 4 months ago | |
| tomasvotruba/class-leak | 0.84 | Class Leak is a PHP dev tool that finds classes you never use, helping you remove dead code. Scan directories and skip types, suffixes, or attributes; exclude tests so classes used only there are still reported. | 156 | 156 | 7 | 196K | 0 | 21.3 | 50.2 | MIT | 1 week ago | |
| voku/phpstan-rules | 0.84 | Additional PHPStan rules to catch risky and redundant condition logic and comparisons. Detects double negatives, PHP 8 behavior changes (0 vs ''), insane/invalid comparisons (0=='0foo', 0==='0'), and type-mismatch checks (e.g., object vs non-object). | 33 | 33 | 1 | 7K | 1 | 0.5 | 32.1 | MIT | — | |
| thecodingmachine/phpstan-safe-rule | 0.84 | PHPStan rule that detects calls to unsafe core PHP functions and suggests the thecodingmachine/safe variants, which throw exceptions instead of returning false on error. Helps catch unsafe function usage during static analysis. | 63 | 62 | 26 | 319K | 3 | 20.1 | 57.0 | — | 4 months ago | |
| tomasvotruba/type-coverage | 0.84 | PHPStan extension that measures and enforces a minimum type declaration coverage rate across your properties, params, and return types. Set per-category thresholds in phpstan.neon and raise them gradually, making it easy to adopt even on legacy projects. | 226 | 223 | 14 | 2M | 0 | 21.0 | 61.7 | MIT | 4 weeks ago | |
| script-development/phpstan-warroom-rules | 0.84 | Custom PHPStan rules for Laravel projects that catch script-development conventions and common pitfalls. Drop-in config, clear error messages, and fast static analysis for CI pipelines. | 0 | 0 | 0 | 4K | 2 | 19.1 | 58.5 | MIT | 1 month ago | |
| phpstan/phpstan-deprecation-rules | 0.84 | PHPStan extension that reports usage of deprecated classes, methods, properties, constants, and traits. Supports custom deprecation markers and scopes, with stub files for deprecations in third-party code you don’t own. | 464 | 468 | 26 | 6M | 17 | 28.8 | 70.1 | MIT | 3 months ago | |
| shipmonk/dead-code-detector | 0.84 | PHPStan extension that finds unused PHP code: dead methods, constants, enum cases, properties, dead cycles, and transitively dead members. Detects dead tested code and can automatically remove unused code. Supports Symfony and other libraries with customizable usage providers. | 534 | 534 | 34 | 1M | 11 | 40.0 | 65.8 | MIT | 1 month ago | |
| localheinz/phpstan-rules | 0.84 | A Composer package of PHPStan rules from ergebnis that enforce stricter coding standards, covering areas like final classes, named arguments, and class extension. Install via Composer and include rules.neon, or let phpstan/extension-installer handle it automatically. Best layered on top of PHPStan's... | 462 | 462 | 23 | 382 | 1 | 32.5 | 4.2 | MIT | 1 week ago | |
| grifart/phpstan-oneline | 0.84 | A PHPStan extension that formats each reported error on a single line, making analysis output easier to read, search, and parse in CI logs or terminals. Useful for grep-friendly error reports and cleaner build output. | 24 | — | 5 | — | 1 | 0.5 | — | MIT | 1 year ago |
|
| nunomaduro/laravel-code-analyse | 0.84 | Laravel Code Analyse brings static code analysis to your Laravel apps. Run the artisan command to scan your codebase against configurable checks, catch common issues early, and keep your code clean, consistent, and production-ready. | 6,547 | 6,548 | 529 | 183 | 39 | 74.7 | 28.6 | MIT | 4 days ago | |
| nunomaduro/php-interminal | 0.83 | An interactive terminal for PHP by Nuno Maduro, making it easy to run and explore PHP code right from the command line. A lightweight, REPL-style workflow for quick experiments, debugging, and learning without leaving your shell. | 33 | 33 | 2 | 0 | 0 | 0.2 | — | — | — | |
| sebastian/lines-of-code | 0.83 | A lightweight PHP library from Sebastian Bergmann for counting lines of code in PHP source files, reporting logical and physical line counts. Used by PHPUnit's code coverage tooling and handy for building metrics, reports, and static analysis tools. | 1,180 | 1,182 | 9 | 24M | 1 | 21.6 | 61.8 | BSD-3-Clause | 3 months ago | |
| tomasvotruba/bladestan | 0.83 | Bladestan adds static analysis for Laravel Blade templates to PHPStan, catching errors like undefined methods in your views. Includes a custom error formatter with clickable links to the exact template line. | 375 | 375 | 30 | 48K | 17 | 31.4 | 42.6 | MIT | 3 weeks ago | |
| mrpunyapal/peststan | 0.83 | PHPStan extension for Pest PHP that adds type-safe expectations, proper $this binding in test closures, generic expect() inference, type-narrowing assertions, and accurate return types for all Pest functions. Requires PHP 8.2+, PHPStan 2, Pest 3-5. | 51 | 53 | 5 | 47K | 0 | 10.5 | 33.8 | MIT | 3 months ago | |
| phpstan/phpstan | 0.83 | PHPStan is a PHP static analysis tool that finds bugs in your code without running it. It catches whole classes of errors before tests are written, bringing compiled-language-style correctness checks to PHP projects. | 14,147 | 14,221 | 972 | 19M | 1,056 | 94.9 | 77.1 | MIT | 4 days ago | |
| prinsfrank/phpstan-doc-code-analyzer | 0.83 | Analyze and validate PHP code examples in your documentation using PHPStan. This package scans doc blocks and docs for code snippets, runs static analysis, and helps catch outdated or incorrect examples early in CI. | 2 | 2 | 0 | 2K | 0 | 1.0 | 38.8 | MIT | 1 year ago | |
| sweetchuck/robo-phpstan | 0.83 | Robo tasks for running PHPStan in your PHP projects. Provides configurable commands and integration helpers to execute static analysis as part of Robo workflows and CI pipelines, with options for paths, config files, and reporting. | 0 | 0 | 0 | 1K | 1 | 0.1 | 43.5 | — | — |
How can I help you explore Laravel packages today?