You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-25Lines changed: 21 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
1
2
# PVM for Windows
2
3
3
4
> [!TIP]
@@ -23,38 +24,33 @@ This utility changes that.
23
24
24
25
## Commands
25
26
26
-
```
27
-
pvm list
28
-
```
29
-
30
-
Will list out all the available PHP versions you have installed
31
-
32
-
```
33
-
pvm install 8
34
-
```
35
-
36
-
> [!NOTE]
37
-
> The install command will automatically determine the newest minor/patch versions if they are not specified
27
+
> `pvm list`
28
+
> Will list out all the available PHP versions you have installed.
38
29
39
-
Will install PHP 8 at the latest minor and patch.
30
+
> `pvm list-remote`
31
+
> Will list available PHP versions from remote repositories.
40
32
41
-
```
42
-
pvm use 8.2
43
-
```
33
+
> `pvm install <version> [nts] [path]`
34
+
> Will install specified PHP vesrion.
35
+
- If the minor and patch versions are not specified, the newest available versions will be automatically selected.
36
+
-[nts] (optional): Install a non-thread-safe version.
37
+
-[path] (optional): Specify a custom installation path.
44
38
45
-
> [!NOTE]
46
-
> Versions must have major.minor specified in the *use* command. If a .patch version is omitted, newest available patch version is chosen.
39
+
> `pvm use <version|path>`
40
+
> Will switch your currently active PHP version to specified PHP vesrion.
41
+
- Using a version: Specify at least the `major.minor` version. If the `.patch` version is omitted, the newest available patch version will be selected automatically.
42
+
- Using a path: Specify the path to the PHP executable to set it as the active PHP version.
47
43
48
-
Will switch your currently active PHP version to PHP 8.2 latest patch.
44
+
> `pvm uninstall 8.2.9`
45
+
> Will uninstall specified PHP vesrion.
46
+
- The `uninstall` command requires the full `major.minor.patch` version to be specified.
49
47
50
-
```
51
-
pvm uninstall 8.2.9
52
-
```
48
+
> `pvm add <path>`
49
+
> Adds a custom PHP version by specifying the path to a PHP executable.
53
50
54
-
> [!NOTE]
55
-
> Versions must have major.minor.patch specified in the *uninstall* command. If a .patch version is omitted, it will not uninstalling.
51
+
> `pvm remove <path>`
52
+
> Removes a custom PHP version by specifying the path to the previously added PHP executable.
0 commit comments