talira

Compare

WordPress Extensions for PHPStanPHPStanPhanLarastan
What it isStatic analysis for WordPress plugins and themes with PHPStanPHP static analysis that finds bugs without running your codeA static analyzer for PHP that minimizes false positivesAdds code analysis to Laravel, improving developer productivity and code quality
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.430.760.680.70
Stars3361417156196558
Last commit2026-11-012026-11-242026-11-282026-11-22
LicenceMITMITMITMIT
PricingFree and open sourceFree tierFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API————
Plugins—Yes——
MCP server————
CompanyViktor SzépeOndřej MirtesPhanLarastan
Features
  • loads php-stubs/wordpress-stubs
  • dynamic return types for WordPress functions the stubs don't cover
  • defines some WordPress core constants
  • reads apply_filters() and do_action() docblocks, treating the first @param as the type
  • whole-codebase static analysis
  • rule levels 0 to 10
  • baseline for existing errors
  • generics and array shapes in PHPDoc
  • framework extensions for Symfony, Laravel and Doctrine
  • result cache and parallel analysis
  • PHPStan Pro web UI
  • type safety and arity checks on calls, operations and return values
  • backward compatibility checks for PHP 8.1 to 8.6
  • dead, unreachable and unused code detection, with automatic fixes for some issues
  • union types, generics (@template), array shapes and PHPDoc annotations
  • user and bundled plugins
  • editor integration through the Language Server Protocol and a daemon mode
  • PHPStan extension for Laravel apps
  • supports most of Laravel's magic
  • finds bugs before tests are written
Limitations
      • Phan 6 needs PHP 8.1 or newer with the php-ast extension (a polyfill parser works without it, with slight differences in doc comment parsing)