Phan
← Tilbage til værktøjer

Phan

Static analyzer med fokus på type checking og dead code detection

Version: 5.x

Foto: Patrick Martin / Unsplash

Features

  • +Deep type inference
  • +Dead code detection
  • +Backward compatibility checks
  • +Unused variable detection
  • +Method signature analysis
  • +AST-based analysis
  • +Plugin system
  • +Multi-file analysis
  • +PHP 8.x support
  • +Incremental analysis mode

Installation

composer require --dev phan/phan

Almindelige Kommandoer

  • phan --progress-bar - Analyser projekt
  • phan -k config/phan.php - Med custom config
  • phan --dead-code-detection - Find dead code
  • phan --color - Colored output
  • phan -m json - JSON output format
  • phan --backward-compatibility-checks - Check BC breaks

Use Cases

  • Deep static type checking
  • Find dead and unreachable code
  • Detect backward compatibility issues
  • Analyze complex type hierarchies
  • Large codebase analysis
  • Security vulnerability detection

Quick Info

Kategori
Static Analysis
Version
5.x
Sværhedsgrad
Avanceret