Skip to content
PluginStats

PHP Sniffer installs statistics

By wongjn · VS Code Marketplace · Linters

Uses PHP_CodeSniffer to format and lint PHP code.

View on VS Code Marketplace Fresh · Dec 6, 2026

PHP Sniffer has 238,582 recorded installs on VS Code Marketplace, an increase of 0.4% over the past 30 days, ranking #1355 of 2,515 tracked listings.

Installs
238,582
Official API · Dec 6, 2026
7-day growth
+0.1%
+189 installs
30-day growth
+0.4%
+925 installs
90-day growth
—
Insufficient history
Rank
#1355
Among tracked VS Code Marketplace listings

Rating: 4.87 / 5 from 15 ratings

About PHP Sniffer

PHP Sniffer

Build Status PHP Sniffer on the Visual Studio Marketplace

Uses PHP_CodeSniffer to format and lint (mainly) PHP code.

Features

  • Runs phpcs to lint code.
  • Runs phpcbf to format fixable code validation errors, using the built-in commands "Format Document" or "Format Selection" (PHP only).
    • One may need to set this extension as the default language formatter for some languages. The following snippet is an example for PHP that can be added in a settings.json:
      {
        "[php]": {
          "editor.defaultFormatter": "wongjn.php-sniffer"
        }
      }
      

Requirements

Extension Settings

Quick Setup

settings.json:

{
  "phpSniffer.autoDetect": true
}

And if your projects look like this:

workspace-folder/
  vendor/
    bin/
      phpcs
      phpcbf
  .phpcs.xml

Validation and formatting will work (see below for alternative filenames for .phpcs.xml).

In Depth

This extension contributes the following settings:

  • phpSniffer.run: When to run phpcs (the linter). Can be onSave, onType or never.
  • phpSniffer.onTypeDelay: When phpSniffer.run is onType, this sets the amount of milliseconds the validator will wait after typing has stopped before it will run. The validator will also cancel an older run if the run is on the same file.
  • phpSniffer.extraFiles: Glob patterns of extra files to match that this extension should run on. Useful for standards that don't just validate PHP files. This extension will always run on PHP files — be sure to have your files.associations setting correctly setup for PHP files.
  • phpSniffer.executablesFolder: The folder where both phpcs and phpcbf executables are. Use this to specify a different executable if it is not in your global PATH, such as when using PHP_Codesniffer as a project-scoped dependency. Can be absolute, or relative to the workspace folder.
  • phpSniffer.autoDetect: Set to true for the extension to auto-detect phpSniffer.executablesFolder as ./vendor/bin/ per workspace folder (applies only if phpSniffer.executablesFolder is empty).
  • phpSniffer.standard: The standards to check against. This is passed to the phpcbf and phpcs executables as the value for --standard. Can be absolute, or relative to the workspace folder. If not set, PHP_CodeSniffer will attempt to find a file to use, at the root of the currently open file's workspace folder in the following order:
    1. .phpcs.xml
    2. phpcs.xml
    3. .phpcs.xml.dist
    4. phpcs.xml.dist
  • phpSniffer.snippetExcludeSniffs: Sniffs to exclude when formatting a PHP code snippet (such as when formatting on paste or on the command format on selection). This is passed to the phpcbf command as the value for --exclude when not formatting a whole file.
  • phpSniffer.disableWhenDebugging: Disable sniffing when any debug session is active.

Known Issues

Windows Hanging PHP Process

When phpcs encounters a malformed array declaration, it can sometimes hang from an error. This is exacerbated by the fact that we do not have access to the spawned php process in the extension code and cannot kill php.exe directly. This causes many non-exiting PHP processes on Windows machines which can really slow down the machine. The fix for this is to update squizlabs/PHP_Codesniffer in use to >=3.4.2.

Description from the VS Code Marketplace listing.

  • linters
  • php
  • phpcbf
  • phpcs

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

PHP Sniffer installs on VS Code Marketplace, last 90 days: 238,582 installs as of Dec 6, 2026.PHP SnifferInstalls on VS Code Marketplace · Last 90 days238,582installs236.8K237K237.2K237.4K237.6K237.8K238K238.2K238.4K238.6KSep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6installsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
PHP Sniffer installs on VS Code Marketplace, last 90 days: 238,582 installs as of Dec 6, 2026.

7/30/90-day growth

PHP Sniffer installs growth on VS Code Marketplace: +0.1% over 7 days, +0.4% over 30 days, 90-day growth unavailable.PHP SnifferInstalls growth on VS Code Marketplace238,582installs now7-day growth+189 installs+0.1%30-day growth+925 installs+0.4%90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 6, 2026pluginstats.com
PHP Sniffer installs growth on VS Code Marketplace: +0.1% over 7 days, +0.4% over 30 days, 90-day growth unavailable.

Ranking history

PHP Sniffer VS Code Marketplace ranking history: currently #1355 (by installs).PHP SnifferVS Code Marketplace ranking · by installs · Last 90 days#1355current rank#1346#1348#1350#1352#1354#1356#1358Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec 6, 2026pluginstats.com
PHP Sniffer VS Code Marketplace ranking history: currently #1355 (by installs).

Ratings over time

PHP Sniffer ratings on VS Code Marketplace, last 90 days: 15 ratings as of Dec 6, 2026.PHP SnifferRatings on VS Code Marketplace · Last 90 days15ratings13.51414.51515.51616.5Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6ratingsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
PHP Sniffer ratings on VS Code Marketplace, last 90 days: 15 ratings as of Dec 6, 2026.

Listing placement

All VS Code Marketplace2,515 listings · 126 pages · 1,258 shown · page 68, #19 (overall #1,359)
All VS Code Marketplace: every listing in installs order

Listing placement

Linters250 listings · 13 pages · page 9, #2 (overall #162)
Linters: every listing in installs order

Listing placement

Formatters284 listings · 15 pages · page 8, #19 (overall #159)
Formatters: 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 PHP Sniffer
Date (UTC)InstallsChange vs. previous
238,582+20
238,562+26
238,536+30
238,506+53
238,453+20
238,433+32
238,401+8
238,393+28
238,365+23
238,342+45
238,297+53
238,244+5
238,239+29
238,210—

Similar VS Code Marketplace Linters plugins

All 20 PHP Sniffer 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=wongjn.php-sniffer. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.