Skip to content

Commit 47cf251

Browse files
authored
Update README.md
1 parent adda22c commit 47cf251

File tree

1 file changed

+21
-25
lines changed

1 file changed

+21
-25
lines changed

README.md

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# PVM for Windows
23

34
> [!TIP]
@@ -23,38 +24,33 @@ This utility changes that.
2324
2425
## Commands
2526

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.
3829
39-
Will install PHP 8 at the latest minor and patch.
30+
> `pvm list-remote`
31+
> Will list available PHP versions from remote repositories.
4032
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.
4438

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.
4743

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.
4947

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.
5350
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.
5653
57-
Will uninstall PHP version to PHP 8.2.9
5854

5955
## Composer support
6056

0 commit comments

Comments
 (0)