PHPStan - PHP Static Analysis Tool

Fund package maintenance!

Installs: 13 589 660

Dependents: 5 606

Suggesters: 40

Security: 0

Stars: 8 615

Watchers: 194

Forks: 632

Open Issues: 443


0.12.25 2020-05-10 20:36 UTC

This package is auto-updated.

Last update: 2020-06-05 08:29:19 UTC



Build Status 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 in an introductory article »

Try out PHPStan on the on-line playground! »


Mike Pretzlaw     TheCodingMachine     Private Packagist     Musement     Intracto     ShipMonk     Togetter

You can now sponsor my open-source work on PHPStan through GitHub Sponsors.

Does GitHub already have your 💳? Do you use PHPStan to find 🐛 before they reach production? Send a couple of 💸 a month my way too. Thank you!

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


All the documentation lives on the website:

Code of Conduct

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.


Any contributions are welcome. PHPStan's source code open to pull requests lives at phpstan/phpstan-src.