ekino/phpstan-banned-code
PHPStan extension that flags banned code patterns in your project (e.g., var_dump, dd, exit/die, eval, echo/print, shell exec/backticks). Configurable via PHPStan parameters, with optional checks like preventing use imports from Tests in non-test code.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpstan/phpstan | 0.93 | PHPStan is a static analysis tool for PHP that finds bugs without running your code. It catches whole classes of errors early, improving type safety and code correctness, and helps you spot issues before writing tests or deploying. | 13,968 | 14,039 | 951 | 9M | 1,051 | 93.7 | 72.2 | MIT | 1 week ago | |
| kcs/phpstan-strict-rules | 0.90 | Fork of thecodingmachine/phpstan-strict-rules to support PHPStan v2. Adds stricter best-practice rules beyond core PHPStan, especially around exception handling (avoid throwing base Exception, empty catches, proper rethrowing). | 3 | 3 | 0 | 4K | 0 | 0.0 | 41.6 | — | — | |
| shipmonk/phpstan-rules | 0.90 | 40 super-strict PHPStan rules from ShipMonk to plug gaps in extra-strict setups. Install via Composer, include rules.neon, then enable/disable or tune rules per-project. Targets tricky PHP edge cases like unsafe comparisons, casts, arrays, enums and more. | 152 | 154 | 24 | 139K | 1 | 31.1 | 49.3 | — | 2 weeks ago | |
| slam/phpstan-extensions | 0.87 | PHPStan extensions with extra strict rules: unused variables, closure parameter typehints, enforce ::class notation, forbid goto, naming conventions, validate PHPUnit annotation FQCNs, and restrict access to globals/static properties in specific contexts. | 71 | 71 | 13 | 35K | 2 | 30.0 | 43.9 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?