PHPStan - PHP Static Analysis Tool
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! »
Sponsors
You can now sponsor my open-source work on PHPStan through GitHub Sponsors.
Does GitHub already have your
One-time donations through PayPal are also accepted. To request an invoice, contact me through e-mail.
Documentation
All the documentation lives on the phpstan.org website:
- Getting Started & User Guide
- Config Reference
- PHPDocs Basics & PHPDoc Types
- Extension Library
- Developing Extensions
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.
Contributing
Any contributions are welcome. PHPStan's source code open to pull requests lives at phpstan/phpstan-src
.