phpstan

PHPStan is a static analysis tool that focuses on detecting errors without having to run your code. It captures error classes before writing tests, ensuring that code accuracy is audited. It features features such as the paid Pro version, which offers an online gaming space and web interface.

PH

phpstan · Code Quality & Review

STARS14.1K
FORKS970
COMMITS15.3K
CONTRIBUTORS280
VERSION2.2.14
UPDATEDtoday
PHPStatic AnalysisHata TespitiCode QualityMIT

Common commercial products in this category: SonarCloud, Codacy, DeepSource

What can it do?
  • You detect errors without running your code.
  • You continuously analyze changing files by scanning them in the background.
  • You scan for errors found through the web interface and open them in the editor.
Heads up
  • • High number of open issues (1,118)
User reviews
  • • NeutralGitHub Issue

    Consider 1.0.0 for the next release number

    “Since PHPStan is becoming wildly popular really quick, and a lot of people rely on its stability, it is a good idea to start versioning new majors for anything that might slightly look like a BC break. (<insert reminder that major versions can be released anytime)”

  • • NeutralGitHub Issue

    Do not execute tested code

    “Currently PHPStan claims to be „PHP Static Analysis Tool“ but this is actually a lie, because phpstan executes the tested code which makes using the tool quite dangerous. The correct solution is to use a library such as”

My note

Alternative pages

More in: Code Quality & Review