Back to updates
New releaseJul 26, 2026

phpstan v2.2.6

PHP Static Analysis Tool - discover bugs in your code without running it!

Share

PHPStan - PHP Static Analysis Tool

PHPStan

Build Status Latest Stable Version Total Downloads License PHPStan Enabled


PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code. It moves PHP closer to compiled languages in the sense that the correctness of each line of the code can be checked before you run the actual line.

Read more about PHPStan »

Try out PHPStan on the on-line playground! »

Sponsors

Want your logo here? Learn more »

Gold Sponsors

Matt Mullenweg     Mojam
CHECK24



Silver Sponsors

ShipMonk Shopware



Bronze Sponsors

TheCodingMachine     Private Packagist
CDN77     Blackfire.io
iO     Fame Helsinki
Belsimpel     Togetter
RightCapital     Shoptet
ZOL     Inviqa
Route4Me: Route Optimizer and Route Planner Software     Crisp.nl
TicketSwap     campoint AG
TestMu AI

You can sponsor my open-source work on PHPStan through GitHub Sponsors and also directly.

One-time donations through Revolut.me are also accepted. To request an invoice, contact me through e-mail.

Documentation

All the documentation lives on the phpstan.org website:

PHPStan Pro

PHPStan Pro is a paid add-on on top of open-source PHPStan Static Analysis Tool with these premium features:

Categories