Comparison

mypy vs PHPStan

On the evidence we track, mypy leads this comparison with a composite score of 72/100. Scores are only directly comparable because these tools share a category; the full breakdown and every source is below.

Machine formatsJSONMarkdownGraphQLor send Accept: application/json
mypy72
PHPStan53
Score
Vioscale score
mypy72 / 100medium · 60%
PHPStan53 / 100medium · 53%
Pricing
Free tier
mypy
PHPStan
Model
Price level
mypyfree
PHPStanlow
Transparent
mypy
PHPStan
Integrations
Count
mypy
PHPStan3
Adoption
Dependent repos
mypy52,771
PHPStan0
Github stars
mypy20,603
PHPStan14,082
Package downloads weekly
PHPStan
Activity
Commits last 30d
mypy27
PHPStan100
Release
Cadence days
mypy
PHPStan2
History
mypy
PHPStan20 items
License
Spdx
mypy
PHPStanMIT
Language
Primary
mypyPython
PHPStanPHP
Market
Availability

Capabilities

Feature-by-feature on the axes that matter for code quality tools. “-” means undocumented, not absent.

Core
Function
mypyType checker
PHPStanStatic analyzer
Language scope
mypySingle-language
PHPStanSingle-language
Implementation language
mypyPython
PHPStanPHP
Capability
Autofix
mypy
PHPStan
Config
Config model
mypy-
PHPStanConfig file
Extensibility
Custom rules
mypy
PHPStan
Deployment
Deployment
mypyCLI-local
PHPStan-
Delivery
Editor integration
mypy
PHPStan
CI / VCS gating
mypy
PHPStan
Insight
Code metrics
mypy
PHPStan-
Performance
Incremental / monorepo aware
mypy
PHPStan
Licensing
Open-source
mypyOSS
PHPStanOSS
Commercial
Pricing model
mypyFree
PHPStanFree

What each one is

The product in its own terms, so the numbers below have context.

mypy

Leader

A type analysis tool for Python that enables code to transition from pure dynamic typing to statically-typed code through annotations, with error detection at check time. Code runs with negligible performance impact and developers can incrementally adopt static types in existing projects.

Independently observed

PHPStan

PHPStan is a static analysis tool for PHP that scans codebases to find bugs before they reach production. It offers both a free open-source version and a paid Pro tier with a web UI and continuous background analysis.

Independently observed

Pricing

List pricing as published by each vendor, with the date we read it. Always verify at the source before you buy.

mypy

Leader
Open source
as of verify ↗

PHPStan

HybridFree tier

Free open-source tier; Pro subscription available at undisclosed pricing

  • PHPStan (Free)Free
    • Bug detection
    • CLI interface
    • CI integration
    • Rule levels 0-10
    • Custom rules support
  • PHPStan ProSubscription required; exact pricing not disclosed
    • Web UI instead of CLI
    • Auto-refresh
    • Continuous background analysis
as of verify ↗

Platform & deployment

Where each product runs and how it can be hosted. A dash means undocumented, not unsupported.

Platforms
Web
mypy
PHPStan
CLI
mypy
PHPStan
Deployment
Self-hosted
mypy
PHPStan

Integrations

What each product connects to. Counts come from the vendor's own integration directory where one exists.

mypy

Leader

Not documented yet.

PHPStan

3 total
  • Symfony
  • Laravel
  • Doctrine
Independently observed

Comparison generated from independently-sourced facts. Every value links to its source and retrieval date. See the method.