Fork on GitHub
Phanalist.

Static PHP Analyzer

Find bugs before they ship.
Analyze PHP code with zero config.

Phanalist is a fast static analyzer for PHP that catches maintainability issues and runtime risks — built in Rust, runs in seconds, works out of the box.

136+built-in rules
Zeroconfiguration
Rustpowered
136+ Rules
Zero Config
Rust Powered
MIT Licensed

What it catches

Everything your PHP code deserves

From method chaining violations to SQL injection, Phanalist finds it automatically.

Code Health

God classes, Law of Demeter, coupling, cohesion, method complexity, naming.

Runtime Safety

Division by zero, null dereferences, array bounds, unreachable code.

Security

SQL injection, XSS, command injection, unsafe unserialize, weak crypto.

Resource Analysis

Input-dependent runtime growth, unbounded recursion, live-heap growth.

Rules Explorer

Find any rule fast

Search by code like E0044, title, or keyword. Every rule has its own page with explanation and code examples.

Try it now

Analyze PHP instantly

Paste PHP code, pick a rule, and see findings immediately — no install required.

Ready to clean up your PHP?

Install Phanalist in seconds and start finding issues locally — zero configuration required.

curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/denzyldick/phanalist/main/bin/init.sh | sh