PHPStan

A static analysis tool that identifies code errors without running the program

Also known as
phpstan

Available worldwide

What is PHPStan?

PHPStan analyzes PHP code to detect bugs and errors before execution. It enhances code reliability by catching a wide range of issues early in development, similar to type checking in compiled languages.

Independently observed

PHPStan pricing

Plans, per-tier features and add-ons, dated and linked to live pricing. Pricing changes often; always verify at source before you rely on it.

Pricing as of verify at live pricing ↗Independently observed
from €7/moHybridFree tier30-day trial

Free open-source, or 7 EUR/month (individual) / 70 EUR/month (team up to 25 members) for Pro features. 30-day free trial.

Open Source

Free
Free

Full static analysis tool

  • Static code analysis
  • Bug detection
  • Type checking

Individual Pro

7 EUR/month
min 1 seats

Web UI, continuous analysis, editor integration

  • Web UI for browsing errors
  • Continuous analysis (watch mode)
  • Editor integration

Team Pro

70 EUR/month (up to 25 members)
min 2 seats

Web UI, continuous analysis, editor integration for up to 25 members

team_members
up to 25
  • Web UI for browsing errors
  • Continuous analysis (watch mode)
  • Editor integration

What PHPStan does

The capabilities that matter for code quality tools, normalised so it lines up with every alternative. “-” means we haven't confirmed it, not that it's missing.

Core
Function
Static analyzer
Language scope
Single-language
Implementation language
PHP
Capability
Autofix
✗
Config
Config model
Config file
Extensibility
Custom rules
✓
Deployment
Deployment
Both
Delivery
Editor integration
✓
CI / VCS gating
✓
Insight
Code metrics
-
Performance
Incremental / monorepo aware
✓
Licensing
Open-source
OSS
Commercial
Pricing model
Free
Independently observed

Platform & deployment

Independently observed
Platforms
  • CLI
  • Web
Deployment
  • Cloud / SaaS
  • Self-hosted

Integrations (3)

Independently observed
  • Symfony
  • Laravel
  • Doctrine

Security & compliance

Known vulnerabilities: 0 (0 in the last 12 months) sourcea count reflects scale & disclosure, not quality

PHPStan FAQ

Common questions about PHPStan, answered from independent, dated evidence.

What is 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. It is indexed under Code Quality Tools.

Source: https://phpstan.org/

Is PHPStan free to use?

PHPStan is open source, so it can be self-hosted and used at no licence cost. It is released under the MIT licence. Paid editions are also offered: PHPStan Pro, priced on request. Pricing changes often, so verify at source before relying on it.

Source: https://phpstan.org/

What platforms does PHPStan support?

PHPStan supports the web and a command-line interface. Platforms we have not confirmed are simply not listed here rather than ruled out.

Source: https://phpstan.org/

Can PHPStan be self-hosted?

Yes. PHPStan can be deployed self-hosted, so it does not have to run on the vendor's infrastructure.

Source: https://phpstan.org/

What does PHPStan integrate with?

We have confirmed 3 integrations for PHPStan, including Symfony, Laravel and Doctrine. This is what we could verify from public sources, so the vendor may support others we have not indexed.

Source: https://phpstan.org/

What security certifications does PHPStan have?

We have independently confirmed GDPR for PHPStan. Certifications we do not list are ones we have not been able to verify from public sources, which is not the same as PHPStan not holding them. Always confirm compliance directly before you rely on it.

Source: https://phpstan.org/merch-privacy-policy

Is PHPStan open source?

Yes. PHPStan is published under the MIT licence, a permissive licence that generally allows commercial use and modification. Licence terms can change between releases, so verify against the repository for the version you intend to use.

Source: https://github.com/phpstan/phpstan

Where is PHPStan available?

PHPStan is available worldwide. The vendor is headquartered in the Czechia.

Source: https://phpstan.org/

PHPStan alternatives

Other code quality tools we track, ranked by the same independent score.

All PHPStan alternatives, ranked →

Compare PHPStan

Side by side against other code quality tools, attribute by attribute, with a source on every value.

Independent · unbought · dated

The vioscaleAI score: one lens on the evidence

Not user reviews and not a paid placement: a confidence-weighted blend of the independent signals below (adoption, activity, security posture, and more), which you can sort and re-weight yourself. Vendors can correct their listing but can never move their rank, and stars are weighted low as a vanity metric. It is one way to read the evidence for PHPStan, not the verdict.

Balanced composite 58 / 100
medium · 54%
Signal contributions to the composite score
SignalScoreWeightContributionEvidence
Development activity630.127.6✓
Capabilities670.106.7✓
Release cadence980.076.6✓
Pricing transparency1000.055.3✓
Price level800.043.2✓
Security score500.052.7✓
Stars780.032.6✓
Integrations170.050.9✓
Dependent projects80.080.6✓
Reliability00.050.0-
Security posture50.090.0-
Package downloads00.170.0-
Developer Q&A activity00.080.0-

Computed . Re-weight it by intent, or see the full method.

All data & sourcesshow ↓

Every value we hold, with its source, retrieval date, and confidence. This is the evidence behind the score: don't trust it, verify it.

Activity

AttributeValueEvidence
Commits last 30d100mediumsource · 2026-10-13 · 65%

Adoption

AttributeValueEvidence
Github stars14,128highsource · 2026-10-13 · 90%
Dependent repos2highsource · 2026-10-13 · 85%

Content

AttributeValueEvidence
Faq8 itemsmediumsource · 2026-09-10 · 68%

Features

AttributeValueEvidence
CapabilitiesAutofix: No · Function: static_analyzer · Ci gating: Yes · Deployment: both · Incremental: Yes · Open source: ossmediumsource · 2026-10-13 · 60%

Integrations

AttributeValueEvidence
Count3mediumsource · 2026-08-14 · 60%

Language

AttributeValueEvidence
PrimaryPHPhighsource · 2026-10-13 · 90%

License

AttributeValueEvidence
SpdxMIThighsource · 2026-10-13 · 95%

Market

AttributeValueEvidence
AvailabilityHqCountry: CZ · PrimaryMarkets: … · AvailabilityScope: global · AvailableCountries: … · NotAvailableCountries: …highsource · 2026-08-14 · 75%

Pricing

AttributeValueEvidence
Free tierYesmediumsource · 2026-10-13 · 60%
Modelfreemiummediumsource · 2026-10-13 · 60%
Price levellowmediumsource · 2026-10-13 · 60%
TransparentYesmediumsource · 2026-10-13 · 60%
Starting priceAmount: 7 · Currency: EURmediumsource · 2026-10-13 · 60%

Release

AttributeValueEvidence
Cadence days3mediumsource · 2026-10-13 · 70%
History20 itemsmediumsource · 2026-10-13 · 70%

Security

AttributeValueEvidence
GdprYeshighsource · 2026-08-14 · 75%
Scorecard5highsource · 2026-10-13 · 90%
VulnerabilitiesCount: 0 · Source: https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=homebrew&package_name=phpstan&per_page=100 · Last 12m: 0highsource · 2026-10-13 · 90%
Still deciding?

Is PHPStan the right choice for you?

Tell us the job, the constraints and what you weigh most, and we will rank PHPStan against the rest of the code quality tools we index, using the same dated evidence weighted your way.

Free to run, no account needed to start. How the evaluation works

For the makers of PHPStan

Is this your product?

This profile was built from public sources without asking you. You can take the badge below and use it anywhere, and you can claim the profile to correct anything we got wrong. Both are free, and neither moves PHPStan up or down: nobody can buy rank here, including you.

Take the badge

Live, always current, and free to use on your own site. It shows PHPStan's independent score and links back to this profile.

PHPStan, verified on vioscaleAI
HTML
<a href="https://www.vioscale.ai/software/phpstan" target="_blank" rel="noopener">
  <img src="https://www.vioscale.ai/badge/software/phpstan.svg" alt="PHPStan, verified on vioscaleAI" width="330" height="76" loading="lazy" />
</a>
Markdown, for a README →
Markdown
[![PHPStan, verified on vioscaleAI](https://www.vioscale.ai/badge/software/phpstan.svg)](https://www.vioscale.ai/software/phpstan)

Claim the profile

Verify you control the domain, then point us at the pages that state the facts about PHPStan and add your own description and media. Free, and it does not change the score.

  • Correct anything wrong, with evidence
  • Point our crawler at the pages that matter
  • Write your own description and add media
Claim PHPStan

Not the owner? How vendor profiles work

For AI & developers

This profile is machine-readable and citable. Fetch it as JSON, Markdown, or GraphQL, or via MCP.

Machine formatsMarkdownJSONGraphQLMarkdown is open. JSON and GraphQL need a free key.

Last updated . Canonical URI: https://www.vioscale.ai/software/phpstan.