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!

UQC9nOZ5q11Agx09fPaSspk1GAinu_HhWGuvCfEcy5KGRv9z
| |