PHP Static Analysis Tool - discover bugs in your code without running it!
$ npx -y skills add phpstan/phpstan --agent claude-code
What's inside
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! »
Want your logo here? Learn more »
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.
All the documentation lives on the phpstan.org website:
PHPStan Pro is a paid add-on on top of open-source PHPStan Static Analysis Tool with these premium features:
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.
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.
Showing a partial view of a very large repo.
FAQ
phpstan is a Claude Code plugin with 2 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes analyse-with-phpstan, run-on-3v4l. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it