Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>PHP SuperpackNew to Visual Studio Code? Get it now.
PHP Superpack

PHP Superpack

chez14

|
7,585 installs
| (0) | Free
PHP Extension Packs for standarized style, helpful IntelliSense, and better debugging experience.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP Extension Superpack!

Included extensions:

  • felixfbecker.php-debug:
    For PHP Debugging with XDebug.
  • neilbrayfield.php-docblocker:
    To help you documentate those functions and classes!
  • bmewburn.vscode-intelephense-client:
    Help you see class' functions and properties with its documentations with the help of IntelliSense.
  • ikappas.phpcs:
    Standarize your (and your teammate's) code with the help of PHP CodeSniffer. Additional setup may be required.
  • onecentlin.phpunit-snippets:
    Make unit test faster with the help of PHPUnit snippets and macros.
  • wongjn.php-sniffer:
    Auto-format your code with CodeSniffer's rule set that you've set up. Additional setup may be needed.

Install

To install this you just need to copy this line and then run it on the Quick Open menu (Ctrl + P):

ext install chez14.php-superpack

Additional Setup

phpcs

You need to install squizlabs/php_codesniffer Composer Package to make this extension work as expected. There's two way on how to install this.

  1. System-wide: use Composer:

    $ composer global require squizlabs/php_codesniffer
    
  2. Project-wide:

    $ composer require squizlabs/php_codesniffer
    

For more information please see: https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs#linter-installation.

PHP Sniffer (wongjn)

This extension requires you to set up your vscode formatter settings. You can do that in two ways:

  1. System-wide

    • Open the Settings page (Ctrl + ,).
    • Make sure you're in User tab.
    • Search defaultFormatter.
    • Change to wongjn.php-sniffer.
    • You can also edit the settings.json file for user-wide settings.
  2. Project-wide

    1. via Settings page (Ctrl + ,).
      • Open the Settings page, make sure you're in the Workspace Tab.
      • Search defaultFormatter.
      • Change to wongjn.php-sniffer.
    2. via settings.json file
      • Create a file on .vscode/settings.json.
      • Add following snippets to set the default formatter to this extensions:
      {
          "[php]": {
              "editor.defaultFormatter": "wongjn.php-sniffer"
          }
      }
      

... and then to setup your extension settings, you need to add the following piece on the settings.json, either on your User or Workspace.

{
  "phpSniffer.autoDetect": true
}

For more information please see: https://marketplace.visualstudio.com/items?itemName=wongjn.php-sniffer#extension-settings

Suggestions and Contacts

Please send suggestions on the repo: https://gitlab.com/chez14/php-superpack.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft