Clone the repo and add the directory to you Path variable.
git clone https://github.com/drissboumlik/pvm
cd pvmRun this command to setup pvm
- Use '--overwrite-path-backup' option to overwrite the backup of the PATH variable (if it exists).
pvm setup [--overwrite-path-backup]Display the avilable options
pvm helpDisplay active PHP version
pvm currentThis one lists the PHP installations. Type 'available' at the end to see what can be installed. Add -f or --force to load from the online source.
pvm list [available [-f]] # or --forceInstall a specific version.
- Add
--xdebugto enable xdebug - Add
--opcacheto enable opcache - Add
--dir=/absolute/path/to specify a custom installation directory
pvm install <version> [--xdebug] [--opcache] [--dir=/absolute/path/]Uninstall a specific version
pvm uninstall <version>Switch to use the specified version
pvm use <version>Enable or disable PHP multiple extensions
pvm ini enable xdebug opcache
pvm ini disable xdebug opcacheSet or Get multiple settings values
pvm ini set memory_limit=512M max_file_uploads=20
pvm ini get memory_limit max_file_uploadsRestore backup
pvm ini restoreNote
Most of the commands edits or adds to the system environment variables, to reload the updates without restarting your terminal, you need to install chocolatey, and run refreshenv command