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! »
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 phpstan.org website:
- Getting Started & User Guide
- Config Reference
- PHPDocs Basics & PHPDoc Types
- Extension Library
- Developing Extensions
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
.