Developer Tools

Visual Studio Code for PHP Development

A free, cross-platform source-code editor that can become a capable PHP development environment through extensions for language intelligence, debugging, formatting and testing.

Visual Studio Code for PHP Development

Visual Studio Code (VS Code) is a lightweight, extensible source-code editor for Windows, macOS and Linux. PHP developers can build a productive workflow by adding PHP language support, debugging and quality-tool extensions.

PHP development features

  • PHP syntax highlighting and language features through extensions.
  • Code navigation, completion and diagnostics when a PHP language server is configured.
  • Xdebug-based debugging with the appropriate extension and local PHP configuration.
  • Integrated terminal, Git tools and a large extension marketplace.
  • Remote development options for supported SSH and container workflows.

Getting started

Install VS Code, install a PHP language extension such as PHP Intelephense, configure the PHP executable path when needed, and add an Xdebug debugging extension if you need step debugging. For project quality, configure Composer, PHPUnit, PHPStan or Psalm separately and use the integrated terminal to run them.

Licensing and platforms

VS Code is free to download and use. Official builds are provided for Windows, macOS and Linux. Review Microsoft's license and privacy terms for the distribution you choose.

Official links

Best suited for

Developers who want a fast, flexible editor and are comfortable assembling their PHP toolchain with extensions.

Share this page Help other developers discover this resource.