PHPStan alternatives and similar libraries
Based on the "Code Analysis" category.
Alternatively, view PHPStan alternatives based on common mentions on social networks and blogs.
-
PHP Code Sniffer
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards. -
phan
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness. -
PHP Mess Detector
PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend. -
Better Reflection
:crystal_ball: Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API. -
PHP Semantic Versioning Checker
Compares two source sets and determines the appropriate semantic versioning to apply. -
PHPCheckstyle
PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions.
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of PHPStan or a related project?
README
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.
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 💳? 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.
Documentation
All the documentation lives on the phpstan.org website:
- Getting Started & User Guide
- Config Reference
- PHPDocs Basics & PHPDoc Types
- Extension Library
- Developing Extensions
- API Reference
PHPStan Pro
PHPStan Pro is a paid add-on on top of open-source PHPStan Static Analysis Tool with these premium features:
- Web UI for browsing found errors, you can click and open your editor of choice on the offending line.
- Continuous analysis (watch mode): scans changed files in the background, refreshes the UI automatically.
- Interactive fixer: lets you choose the right fix for found errors :blush:
Try it on PHPStan 0.12.45 or later by running it with the --pro
option. You can create an account either by following the on-screen instructions, or by visiting account.phpstan.com.
After 30-day free trial period it costs 7 EUR for individuals monthly, 70 EUR for teams (up to 25 members). By paying for PHPStan Pro, you're supporting the development of open-source PHPStan.
You can read more about it on PHPStan's 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.
Contributing
Any contributions are welcome. PHPStan's source code open to pull requests lives at phpstan/phpstan-src
.
*Note that all licence references and agreements mentioned in the PHPStan README section above
are relevant to that project's source code only.