Skip to content
PluginStats

phpstan installs statistics

By SanderRonde · VS Code Marketplace · Linters

PHPStan inline error provider

View on VS Code Marketplace Fresh · Dec 6, 2026

phpstan has 102,417 recorded installs on VS Code Marketplace, an increase of 2.0% over the past 30 days, ranking #2347 of 2,515 tracked listings.

Installs
102,417
Official API · Dec 6, 2026
7-day growth
+0.5%
+493 installs
30-day growth
+2.0%
+2.1K installs
90-day growth
—
Insufficient history
Rank
#2347
▲ 4 in 7 days

Rating: 5.00 / 5 from 7 ratings

About phpstan

VSCode Installs

Features

  • Automatically runs PHPStan of your code and highlights errors as you type.
  • Performs project-wide analysis and displays all errors in the Diagnostics tab.
  • Shows the values of variables according to PHPStan at the point of hovering when using phpstan.showTypeOnHover setting.

https://user-images.githubusercontent.com/5385012/188924277-c9392477-9bd6-40b1-9ed7-eb892da1fe0f.mp4

Configuration

Main Config
  • phpstan.configFile - path to the config file, either relative to phpstan.rootDir or absolute. Use a comma-separated list to resolve in the listed order. For example if phpstan.neon,phpstan.neon.dist is used, the extension will first try to use phpstan.neon if it exists and fall back to phpstan.neon.dist.
  • phpstan.rootDir - path to the root directory of your PHP project (defaults to workspaceFolder)
  • phpstan.binPath - path to the PHPStan binary (defaults to ${workspaceFolder}/vendor/bin/phpstan)
  • phpstan.binCommand - command that runs the PHPStan binary. Use this if, for example, PHPStan is already in your global path. If this is specified, it is used instead of phpstan.binPath. For example ["lando", "phpstan"] or ["docker", "exec", "-t", "phpstan"]. Unset by default.
  • phpstan.pro - Enable PHPStan Pro support. Runs PHPStan Pro in the background and leaves watching to PHPStan while displaying any errors it catches in the editor. This requires a valid license. False by default.
  • phpstan.singleFileMode - Whether to scan only the file that is being saved, instead of the whole project. This is not recommended since it busts the cache. Only use this if your computer can't handle a full-project scan
Tuning
  • phpstan.options - array of command line options to pass to PHPStan (defaults to [])
  • phpstan.memoryLimit - memory limit to use when running PHPStan (defaults to 1G)
  • phpstan.projectTimeout - timeout for checking the entire project after which the PHPStan process is killed in ms (defaults to 60000ms)
  • phpstan.timeout - timeout for checking single files after which the PHPStan process is killed in ms (defaults to 10000ms). Only used if the phpstan.singleFileMode setting is enabled.
  • phpstan.suppressTimeoutMessage - whether to disable the error message when the check times out (defaults to false)
  • phpstan.paths - path mapping that allows for rewriting paths. Can be useful when developing inside a docker container or over SSH. Unset by default. Example for making the extension work in a docker container: { "/path/to/hostFolder": "/path/in/dockerContainer" }
  • phpstan.ignoreErrors - An array of regular expressions to ignore in error messages. If you find the PHPStan process erroring often because of a warning that can be ignored, put the warning in here and it'll be ignored in the future.
  • phpstan.tmpDir - Path to the PHPStan TMP directory. Lets PHPStan determine the TMP directory if not set.
Customization
  • phpstan.enabled - whether to enable the on-save checker (defaults to true)
  • phpstan.enableStatusBar - whether to show a statusbar entry while performing the check (defaults to true)
  • phpstan.showTypeOnHover - Whether to enable on-hover information. Disable this if you're running into caching problems (defaults to false)
  • phpstan.showProgress - whether to show the progress bar when performing a single-file check (defaults to false)
  • phpstan.checkValidity - Whether to check the validity of PHP code before checking it with PHPStan. This is recommended only if you have autoSave enabled or for some other reason save syntactically invalid code. PHPStan tends to invalidate its cache when checking an invalid file, leading to a slower experience.'. (defaults to false)
Example config for containers

Map your workspace folder into the container root dir using phpstan.paths and define a custom phpstan.binCommand to let the extension run within the container. Here is a working config for ddev:

{
    "phpstan.paths": {
        "${workspaceFolder}": "/var/www/html"
    },
    "phpstan.binCommand": [
        "ddev",
        "exec",
        "phpstan",
    ],
}

FAQ

XDebug-related issues

If you find XDebug-related issues (such as checks failing with The Xdebug PHP extension is active, but "--xdebug" is not used in the output), see these issues: https://github.com/SanderRonde/phpstan-vscode/issues/17, https://github.com/SanderRonde/phpstan-vscode/issues/19.

Does this extension support checking multiple workspaces?

The extension currently doesn't support checking multiple workspaces. You can use the extension just fine in a multi-workspace project, but only a single PHPStan configuration can be checked. The one that will be checked is configurable using the above configuration options. If you really would like multi-workspace support, feel free to mention so in this issue and I might eventually add support for it if there's enough demand.

Development

First get your dev environment started by running bun dev. Note that this expects you to have a few programs installed:

  • composer
  • git
  • bun

This command installs all JS and PHP dependencies and ensures you're ready to go for writing a PHPStan extension.

Running the extension

To run the extension, you can use the Launch Client task in VSCode. This will start a new VSCode window with the extension running. Use Client + Server to also attach the debugger to the language server.

Building the extension for production

To build for production or publish, use the VSCode Extension command (vsce). vsce package will build an installable .vsix file.

Good-to-know commands…

Description from the VS Code Marketplace listing.

  • blade
  • linter
  • php
  • phpstan
  • static analysis

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

phpstan installs on VS Code Marketplace, last 90 days: 102,417 installs as of Dec 6, 2026.phpstanInstalls on VS Code Marketplace · Last 90 days102,417installs98.5K99K99.5K100K100.5K101K101.5K102K102.5KSep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6installsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
phpstan installs on VS Code Marketplace, last 90 days: 102,417 installs as of Dec 6, 2026.

7/30/90-day growth

phpstan installs growth on VS Code Marketplace: +0.5% over 7 days, +2.0% over 30 days, 90-day growth unavailable.phpstanInstalls growth on VS Code Marketplace102,417installs now7-day growth+493 installs+0.5%30-day growth+2,056 installs+2.0%90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 6, 2026pluginstats.com
phpstan installs growth on VS Code Marketplace: +0.5% over 7 days, +2.0% over 30 days, 90-day growth unavailable.

Ranking history

phpstan VS Code Marketplace ranking history: currently #2347 (by installs).phpstanVS Code Marketplace ranking · by installs · Last 90 days#2347current rank#2345#2350#2355#2360#2365#2370#2375#2380#2385Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec 6, 2026pluginstats.com
phpstan VS Code Marketplace ranking history: currently #2347 (by installs).

Ratings over time

phpstan ratings on VS Code Marketplace, last 90 days: 7 ratings as of Dec 6, 2026.phpstanRatings on VS Code Marketplace · Last 90 days7ratings6.26.46.66.877.27.47.67.8Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6ratingsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
phpstan ratings on VS Code Marketplace, last 90 days: 7 ratings as of Dec 6, 2026.

Listing placement

All VS Code Marketplace2,515 listings · 126 pages · 1,258 shown · page 118, #11 (overall #2,351)
All VS Code Marketplace: every listing in installs order

Listing placement

Linters250 listings · 13 pages · page 12, #15 (overall #235)
Linters: every listing in installs order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (50)
Recent installs observations for phpstan
Date (UTC)InstallsChange vs. previous
102,417+70
102,347+38
102,309+76
102,233+114
102,119+83
102,036+88
101,948+24
101,924+20
101,904+95
101,809+82
101,727+68
101,659+146
101,513+36
101,477—

Similar VS Code Marketplace Linters plugins

All 20 phpstan alternatives

Data source

Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.

Listing: https://marketplace.visualstudio.com/items?itemName=SanderRonde.phpstan-vscode. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.