Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PHP Version SwitcherNew to Visual Studio Code? Get it now.
PHP Version Switcher

PHP Version Switcher

Bavance

|
1,349 installs
| (0) | Free
Change and install PHP versions from status bar in VS Code. Supports Laragon, XAMPP, WAMP, MAMP, Homebrew and more.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP Version Switcher

Change and install PHP versions from status bar.

Features

  • Switch between PHP versions easily
  • Install PHP versions directly from the extension
  • Auto-detect PHP installations (Laragon, XAMPP, WAMP, MAMP, Homebrew)
  • Per-project .php-version auto-apply
  • composer.json PHP requirement mismatch warnings
  • Manage custom PHP scan paths from the menu
  • Configure which applications to use
  • Cross-platform support (Windows, Mac, Linux)

Settings

Setting Default Description
phpSwitcher.respectPhpVersionFile true Read .php-version from workspace root
phpSwitcher.autoApplyPhpVersion true Auto-switch when .php-version differs
phpSwitcher.warnComposerMismatch true Warn if active PHP does not match composer.json
phpSwitcher.customPaths [] Extra directories to scan (editable via Manage Custom Paths)

Mac / Linux install

  • Mac: installs via Homebrew
  • Linux with Homebrew: same as Mac
  • Linux without Homebrew: shows a copyable apt / dnf command (no automatic sudo)

⚡ Fuel the switcher

If this extension made managing PHP a little easier, I'd love it if you'd buy me a ☕ USDT on TON below. Thanks in advance!

Donate USDT on TON

UQC9nOZ5q11Agx09fPaSspk1GAinu_HhWGuvCfEcy5KGRv9z

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