Comparison

PHPStan vs pre-commit

On the evidence we track, pre-commit leads this comparison with a composite score of 68/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
PHPStan53
pre-commit68
Score
Vioscale score
PHPStan53 / 100medium · 53%updating
pre-commit68 / 100medium · 73%updating
Pricing
Free tier
PHPStan
pre-commit
Model
PHPStanfreemium
pre-commitcommercial
Price level
PHPStanlow
pre-commitfree
Transparent
PHPStan
pre-commit
Integrations
Count
PHPStan3
pre-commit
Reliability
Status page
PHPStan
pre-commit
Adoption
Dependent repos
PHPStan0
pre-commit35,684
Github stars
PHPStan14,082
pre-commit15,536
Package downloads weekly
PHPStan
pre-commit42,454,729
Activity
Commits last 30d
PHPStan100
pre-commit13
Release
Cadence days
PHPStan2
pre-commit57
History
PHPStan20 items
pre-commit20 items
License
Spdx
PHPStanMIT
pre-commitMIT
Language
Primary
PHPStanPHP
pre-commitPython
Market
Availability
pre-commit

Capabilities

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

Core
Function
PHPStanStatic analyzer
pre-commitMeta-runner
Language scope
PHPStanSingle-language
pre-commitMulti-language
Implementation language
PHPStanPHP
pre-commitPython
Capability
Autofix
PHPStan
pre-commit
Config
Config model
PHPStanConfig file
pre-commitConfig file
Extensibility
Custom rules
PHPStan
pre-commit
Deployment
Deployment
PHPStan-
pre-commitCLI-local
Delivery
Editor integration
PHPStan
pre-commit
CI / VCS gating
PHPStan
pre-commit
Insight
Code metrics
PHPStan-
pre-commit
Performance
Incremental / monorepo aware
PHPStan
pre-commit
Licensing
Open-source
PHPStanOSS
pre-commitOSS
Commercial
Pricing model
PHPStanFree
pre-commitFree

What each one is

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

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

pre-commit

Leader

A framework that automates the execution of code quality checks as git pre-commit hooks, eliminating the need for developers to manually install language-specific dependencies on their machines to run linters and formatters written in any programming language.

Independently observed

Pricing

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

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 ↗

pre-commit

Leader
Free
as of verify ↗

Platform & deployment

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

Platforms
Web
PHPStan
pre-commit
CLI
PHPStan
pre-commit
Deployment
Self-hosted
PHPStan
pre-commit

Integrations

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

PHPStan

3 total
  • Symfony
  • Laravel
  • Doctrine
Independently observed

pre-commit

Leader

Not documented yet.

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