Comparison

Black vs PHPStan

On the evidence we track, Black leads this comparison with a composite score of 73/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
Black73
PHPStan53
Score
Vioscale score
Black73 / 100high · 78%
PHPStan53 / 100medium · 53%
Pricing
Free tier
Black
PHPStan
Model
Price level
Blackfree
PHPStanlow
Transparent
Black
PHPStan
Integrations
Count
Black8
PHPStan3
Adoption
Dependent repos
Black105,588
PHPStan0
Github stars
Black41,816
PHPStan14,082
Package downloads weekly
PHPStan
Activity
Commits last 30d
Black29
PHPStan100
Release
Cadence days
Black31
PHPStan2
History
PHPStan20 items
License
Spdx
BlackMIT
PHPStanMIT
Language
Primary
BlackPython
PHPStanPHP
Market
Availability

Capabilities

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

Core
Function
BlackFormatter
PHPStanStatic analyzer
Language scope
BlackSingle-language
PHPStanSingle-language
Implementation language
BlackPython
PHPStanPHP
Capability
Autofix
Black
PHPStan
Config
Config model
BlackZero-config
PHPStanConfig file
Extensibility
Custom rules
Black
PHPStan
Deployment
Deployment
BlackBoth
PHPStan-
Delivery
Editor integration
Black
PHPStan
CI / VCS gating
Black
PHPStan
Insight
Code metrics
Black
PHPStan-
Performance
Incremental / monorepo aware
Black
PHPStan
Licensing
Open-source
BlackOSS
PHPStanOSS
Commercial
Pricing model
BlackFree
PHPStanFree

What each one is

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

Black

Leader

An opinionated Python code formatter that automatically reformats code according to a standardized style. It produces minimal diffs for cleaner code review and reduces developer cognitive load by removing formatting decisions, allowing focus on code logic.

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.

Black

Leader
Open sourceFree tier

Free and open source (MIT licensed)

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
Black
PHPStan
CLI
Black
PHPStan
Deployment
Self-hosted
Black
PHPStan

Integrations

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

Black

Leader
8 total
  • Neovim
  • conform.nvim
  • ALE
  • SublimeText
  • Pre-commit
  • Jupyter Notebooks
  • blacken-docs
  • blackdoc
Independently observed

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.

Black vs PHPStan: an evidence-based comparison · Vioscale