Skip to content

Commit 9a86869

Browse files
Updated read.me
Removed superfluous information. Clarified ambiguous information. Fixed spelling mistakes.
1 parent 42c1945 commit 9a86869

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# WampServer PHP CLI Version Changer
2-
WampServer PHP CLI version changer is a Microsoft Windows batch script that allows you to easily add and then change between available WampServer PHP CLI versions using the users environmental path.
2+
WampServer PHP CLI Version Changer is a Microsoft Windows batch script that allows you to easily change between installed WampServer PHP CLI versions using the users environmental path.
33

44
## Minimum Requirements
55
The following are required for the CLI Changer script to function correctly.
@@ -11,20 +11,18 @@ No installation is required.
1111

1212
At just over 7kB the CLI Changer script is small enough to be saved anywhere in your file system.
1313

14-
**Note:** To operate seamlessly the Microsoft Windows "cmd.exe" executable must be in your system path. The standard installation path is ``C:\Windows\System32``.
15-
1614
**Tip:** Once you have save the CLI Changer script, create a desktop shortcut to it for quick and easy access.
1715

1816
## Configuration
1917
If using a WampServer 32-bit version with default settings, then no configuration is necessary.
2018

21-
If using a WampServer 64-bit version **OR** a different install path was set during installation, then follow the steps below:
19+
If using a WampServer 64-bit version **OR** a different install path was used during installation, then follow the steps below:
2220

2321
1. Open the CLI Changer script in your preferred text editor.
24-
2. Change the value of the `$pathToInstall` variable to match that of your WampServer install path, taking care **not to** use quotes around the value.
22+
2. Change the value of the `$pathToInstall` variable to match that of your WampServer installation path. **Note:** If your path has spaces in it then the line should look like this: `"$pathToInstall=C:\wamp server"`
2523
3. Once you have changed the value, save and close your editor.
2624

27-
For reference, the default WampServer install paths are:
25+
For your reference, the default WampServer install paths are:
2826
- `C:\wamp` - For 32-bit installations.
2927
- `C:\wamp64` - For 64-bit installations.
3028

@@ -45,9 +43,9 @@ There are two ways you can use the CLI Changer script.
4543
* Command line interface (CLI).
4644

4745
### Text Based User Interface (TUI)
48-
Upon running the CLI Changer script you will be presented with a numbered list of available PHP versions that you can select from.
46+
Upon running the CLI Changer script you will be presented with a numbered list of installed PHP versions that you can select from.
4947

50-
The exact list of available PHP CLI versions is dependent on what you currently have in your WampServer PHP addon folder.
48+
The exact list of installed PHP CLI versions is dependent on what you currently have in your WampServer PHP addon folder.
5149

5250
```
5351
Available PHP CLI Versions
@@ -77,7 +75,7 @@ To select a PHP version:
7775

7876
The CLI Changer script will display the newly set PHP version number and prompt you to press any key to exit.
7977

80-
**Note:** The newly selected PHP version will only be available to new command line windows opened after the change. Existing windows will still reference any previously set PHP version.
78+
**Note:** The newly selected PHP version will only be available to new command line windows. Existing windows will still reference the previously set PHP version.
8179

8280
To exit the CLI Changer script without making any changes just press the ENTER key.
8381

@@ -86,11 +84,17 @@ Should you make an invalid selection or should the selection be the same as the
8684
### Command Line Interface (CLI)
8785
To update the PHP CLI version number directly from the command line, you can pass in the desired PHP version via the scripts first argument. This will bypass the selection screen and go straight to setting the desired version number.
8886

87+
From a CMD prompt:
88+
```
89+
C:\>: "C:\path\to\cli_changer.bat" php7.2.3
90+
```
91+
92+
From a Bash or Powershell prompt:
8993
```
90-
cmd_prompt>: start "path\to\cli_changer.bat" php7.2.3
94+
$ start "C:\path\to\cli_changer.bat" php7.2.3
9195
```
9296

93-
**Note 1:** You will need to enclose the scripts path in double quotation marks if the path contains any spaces.
97+
**Note 1:** You will need to enclose the CLI Changer script path in double quotation marks if the path contains any spaces.
9498

9599
**Note 2:** You will need to know the available PHP CLI version(s) in advance prior to using this command.
96100

0 commit comments

Comments
 (0)