phan/phan
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness. observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 99
- Release rhythm 89
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 23
- age_days: 3968
- days_rel: 72
- days_push: 7
- n_releases_24m: 12
Adoption not part of the score
5623 stars · 367 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Phan is a static analyzer for PHP that finds bugs in code before it runs, focusing on type compatibility checking and minimizing false positives. It proves incorrectness rather than correctness and supports analyzing PHP 8.1-8.5 syntax.
Use cases
- find bugs in php code before running it
- static type checking for php project
- catch undefined variables and dead code in php
- verify php code compatibility with php 8.1-8.5
- incrementally add static analysis to a legacy php codebase
- check phpdoc annotations and type safety in php
When to choose
- you maintain a PHP codebase and want to catch type errors and bugs before runtime
- you want a low-false-positive analyzer that can be introduced incrementally
- you need to verify compatibility with newer PHP syntax versions
When to avoid
- you need a general-purpose linter for code style rather than bug detection
- your project is not written in PHP
- you cannot install the php-ast extension and need exact doc comment parsing
Facets
cli-tool · maturity active
testing linter developer-tools developer-tools programming-languages testing php cli cross-platform static-analysis php type-checking code-quality bug-detection
2 sources
- readme: https://github.com/phan/phan · fetched 2026-08-28 · 4825d58222f1
- homepage: https://github.com/phan/phan/wiki · fetched 2026-08-29 · 57ccc01acb89
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| phan/phan | main | 96 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem