PHPStan
Static analyser that finds bugs in PHP code
PHPStan is a static analysis tool for PHP projects. It reads source code without running it and reports bugs such as calls to undefined methods or type mismatches, so developers can catch problems before they reach production. It is aimed at PHP developers who want an automated check on their code as part of everyday development.
The project is open source and its source code is published on GitHub. The website describes it as a way to find bugs without writing tests, which is a different approach from relying only on a test suite.
Alternatives to PHPStan
Products that do a similar job in Developer Tools.
PHP_CodeSniffer
Command-line checker that flags PHP code against coding standards
SonarQube CLI
command-line client for SonarQube code quality and security scans
jscpd
Finds duplicated code blocks across source files in many languages
ShellCheck
Static analysis linter for bash and other shell scripts
PhpStorm
IDE for PHP development from JetBrains
reviewdog
Posts linter output as code review comments on pull requests
Laravel Herd
Local PHP and Laravel development environment for macOS
Apache NetBeans
Free IDE for Java, JavaScript, PHP and HTML5 development