Submit a product

PHPStan

Static analyser that finds bugs in PHP code

ToolOpen source

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.

All alternatives

PHP_CodeSniffer

Command-line checker that flags PHP code against coding standards

ToolDeveloper Tools··Open source·11k

SonarQube CLI

command-line client for SonarQube code quality and security scans

ToolDeveloper Tools·

jscpd

Finds duplicated code blocks across source files in many languages

ToolDeveloper Tools··Open source·6.7k

ShellCheck

Static analysis linter for bash and other shell scripts

ToolDeveloper Tools·Open source·40k

PhpStorm

IDE for PHP development from JetBrains

AppDeveloper Tools··Paid

reviewdog

Posts linter output as code review comments on pull requests

ToolDeveloper Tools··Open source·9.8k

Laravel Herd

Local PHP and Laravel development environment for macOS

ToolDeveloper Tools·

Apache NetBeans

Free IDE for Java, JavaScript, PHP and HTML5 development

ToolDeveloper Tools··Open source