Next-gen phpDoc parser with support for intersection types and generics
Top PHPSTAN GitHub Repositories & Tools (2026)
Discover the most starred and trending open source tools tagged with #phpstan.
Extra strict and opinionated rules for PHPStan
PHPUnit extensions and rules for PHPStan
๐ PHP unused code detection via PHPStan extension. Detects dead cycles, supports libs like Laravel, Symfony, Twig, Doctrine, PHPUnit etc. Can automatically remove dead PHP code. Able to detect dead code used only in tests. Finds unused methods, constants, properties and enum cases.
๐ Provides a composer package with rules for phpstan/phpstan.
PHPStan rules to detect disallowed method & function calls, constant, namespace, attribute, keyword & superglobal usages, with powerful rules to re-allow a call or a usage in places where it should be allowed.
Extracts PHP types information.
PHPStan plugin for PhpStorm
PHP Static Analysis Tool - discover bugs in your code without running it!