fA collection of (mostly) free or open source PHP static code analysis libraries, utilities and tools for testing, errors, dependencies sourced under a creative commons. This list will be updated regularly. Email over the URL, if you wish to be included.

Static Analysis

Libraries for performing static analysis of PHP code.

  • Exakat – A static analysis engine for PHP.
  • Deptrac – A static code analysis tool that helps to enforce rules for dependencies between software layers.
  • Mondrian – A code analysis tool using Graph Theory.
  • phan – A static analyzer based on PHP 7+ and the php-ast extension.
  • PHP Architecture Tester – Easy to use architecture testing tool for PHP.
  • PHPCompatibility – A PHP compatibility checker for PHP CodeSniffer.
  • PhpDependencyAnalysis – A tool to create customisable dependency graphs.
  • PHP Metrics – A static metric library.
  • PHP Migration – A static analyzer for PHP version migration.
  • PHPStan – A PHP Static Analysis Tool.
  • Psalm – A static analysis tool for finding errors in PHP applications.

Tags: static analysis, php static analysis, php code analysis, php code analysis utilities, php, exakat, deptrac, mondrian, phan, php architecture, phpcompatibility, php metrics, php migrations, phpstan, psalm