#1111th of 34 in Code review and testing
phpstan
Static analyzer that finds bugs in PHP code without running it
Live demo ↗
(opens in a new tab)Documentation ↗
(opens in a new tab)Website ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 14.2k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- PHP
13,846 on 21 Apr 202614,154 on 10 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
PHPStan checks PHP code for type and logic errors before execution, using PHPDoc types and extensions to widen what it can verify. It runs from the command line or CI. PHPStan Pro, a paid add-on, adds a web UI for browsing errors and a watch mode. The project does not use AI models.
Who it is for: PHP developers who want static type checking locally or in CI
Strengths
- Catches classes of bugs without executing code or writing tests first
- Online playground at phpstan.org/try for testing snippets without installing
- Extension library and documented API for writing custom extensions
- MIT-licensed with active releases; last release 2026-10-27
Weaknesses
- PHP only; no other languages are analyzed
- Web UI and watch mode require paid PHPStan Pro after a 30-day trial
- Not an AI tool; it does not use or integrate language models
- Source for pull requests lives in phpstan/phpstan-src, not this repository
What it needs
- no GPU
- Docker
Quick answers
Is phpstan open source?
Yes. Its code is on GitHub under the MIT license.
Can you run phpstan with Docker?
Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.
Also in Code review and testing
See all 34| Rank | Project | Score |
|---|---|---|
| 1 | playwrightCross-browser automation and end-to-end test framework for Chromium, Firefox and WebKit | 94 out of 100 |
| 2 | nxMonorepo build system with task caching, affected-only runs and CI integration | 92 out of 100 |
| 3 | open-code-reviewGo CLI that reviews Git diffs with an LLM agent and line-level comments | 91 out of 100 |
| #4 | bendDependent-typed language where AI-written code must prove rules in LAWS.bend | 87 out of 100 |
| #5 | maestroYAML-based UI and end-to-end test framework for Android, iOS and web | 87 out of 100 |