talira

Compare

PhanPsalmPHPStanLarastan
What it isA static analyzer for PHP that minimizes false positivesFree and open source static analysis tool for finding errors in PHP codePHP static analysis that finds bugs without running your codeAdds code analysis to Laravel, improving developer productivity and code quality
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.680.740.760.70
Stars56195934141716558
Last commit2026-11-282026-11-262026-11-242026-11-22
LicenceMITMITMITMIT
PricingFree and open sourceFree and open sourceFree tierFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API————
Plugins—YesYes—
MCP server————
CompanyPhanVimeoOndřej MirtesLarastan
Features
  • 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
  • type checking with docblock generics and array shapes
  • strictness levels from loose to strict
  • taint analysis for SQL injection, XSS and other vulnerabilities
  • automatic fixes for many issues
  • plugins for frameworks and libraries
  • online playground
  • IDE support
  • GitHub Actions for analysis and security scans (SARIF to code scanning)
  • All 10 features
  • 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
  • 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)