pvm is a cross-platform command line tool to manage multiple PHP versions efficiently. It allows you to install, uninstall, and switch between multiple PHP versions per user or project.
- Install official PHP binaries per platform (Windows/macOS/Linux).
- Uninstall unwanted versions easily.
- Switch PHP versions globally or locally per project.
- Auto-detect local version using
.pvmrcfiles. - View list of installed and available versions.
- Validate downloaded archives via checksum.
- Update the versions manifest from official sources.
- Configuration management for mirrors and directories.
- Robust logging and error handling.
- Node.js >= 14.x
- npm or yarn
-
Download the release file: pvm-installer.zip
-
Unzip the archive to a folder of your choice.
-
Run
pvm-installer.exeas Administrator. -
After installation, add PVM to your system PATH:
C:\Program Files (x86)\PVM
-
Press
Windows + S→ search for:Environment Variables -
Click on Edit the system environment variables
-
In the System Properties window, click Environment Variables
-
In System Variables, select the
Pathvariable → click Edit -
Click New and paste:
C:\Program Files (x86)\PVM -
Click OK to save, then restart your terminal (or your PC)
Open a new terminal and run:
pvm --versionYou should see the current version of PVM installed.
Tap the following command to see the possible pvm commands and how to use it.
pvm -h or pvm --helpFor questions or issues, feel free to open an issue on GitHub.
Thanks for using PVM 💚