hjbdev/pvm

PHP Version Manager for Windows CLI

Installs: 2 952

Dependents: 0

Suggesters: 0

Security: 0

Stars: 125

Watchers: 8

Forks: 10

Open Issues: 3

Language:Go

0.2.4 2023-08-29 07:33 UTC

This package is auto-updated.

Last update: 2024-05-01 15:21:23 UTC


README

Tip

Looking for the 0.x (composer) version? See the v0 branch.

Removing the hassle of changing PHP versions in the CLI on Windows.

This package has a much more niche use case than nvm does. When developing on Windows and using the integrated terminal, it's quite difficult to get those terminals to actually listen to PATH changes.

This utility changes that.

Installation

Download the latest pvm version from the releases page (1.0-alpha-1, it's currently a pre-release).

Create the folder %UserProfile%\.pvm\bin (e.g. C:\Users\Harry\.pvm\bin) and drop the pvm exe in there. Add the folder to your PATH.

Commands

pvm list

Will list out all the available PHP versions you have installed

pvm path

Will tell you what to put in your Path variable.

pvm use 8.2.9

Note

Versions must have major.minor specified in the use command. If a .patch version is omitted, newest available patch version is chosen.

Will switch your currently active PHP version to PHP 8.2.9

pvm install 8.2

Note

The install command will automatically determine the newest minor/patch versions if they are not specified

Will install PHP 8.2 at the latest patch.