PHP Static Analysis Tool - discover bugs in your code without running it!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Ondrej Mirtes a9503c3474
No need for an alias
4 months ago
.github Update github-actions to v3 4 months ago
.idea Add PHPStan logo as .idea/icon.png 5 months ago
conf
docker The official Docker image is back to PHP 8.0 6 months ago
e2e Update PMMP baseline 4 months ago
issue-bot Revert "Issue bot - TMP dry run" 8 months ago
playground-api Update playground-api 4 months ago
playground-runner ignoreErrors API CORS 4 months ago
website Fix 4 months ago
.gitattributes export-ignore 8 months ago
.gitignore Add PHPStan logo as .idea/icon.png 5 months ago
BACKERS.md
CHANGELOG.md Changelog 8 months ago
CODE_OF_CONDUCT.md Update CoC 6 months ago
LICENSE
README.md Update README.md 5 months ago
bootstrap.php Update custom PHAR prefix 12 months ago
composer.json No need for an alias 4 months ago
phpstan
phpstan.phar Updated PHPStan to commit c18528fb206f7c75a5a9a96cb7f601dda9dc8818 4 months ago
phpstan.phar.asc Updated PHPStan to commit c18528fb206f7c75a5a9a96cb7f601dda9dc8818 4 months ago

README.md

PHPStan - PHP Static Analysis Tool

PHPStan

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! »

Sponsors

TheCodingMachine     Private Packagist
Musement     Blackfire.io
iO     TicketSwap
ShipMonk     Togetter
RightCapital     ContentKing
ZOL     Stepan Kocourek
Shopware     Craft CMS
Worksome     campoint AG

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:

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 😊

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.