|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2021-12-12 (9 months ago) ||Not yet rated by the users||Total: 68 ||All time: 10,068 This week: 237|
This package can switch the version of PHP that will run on Windows.
It can take as a parameter the version of PHP that you wish to use to run PHP scripts when they execute from the command line.
The class can write a batch script named PHP.BAT that executes the specified version of the PHP CLI executable program passing to PHP any parameters to that batch script.
|When you develop code for other developers, it is always good to test that code on different versions of PHP, so the code is ready to handle the differences between the different versions of PHP.
This package creates a batch script for Windows named PHP.BAT that can be changed to run different versions of the PHP CLI version installed in the current computer.
This way, it is easy to switch the version of PHP that testing code will use.
Clone this repo: ```git clone https://github.com/isaeken/multiphp.git```
Move repo to secure folder example: ``C:\dev\multiphp``
Install dependencies: ```composer install --no-dev --optimize-autoloader```
Add path to environment variables
Run ```multiphp``` command in your terminal and enter binary directory & environment directory
- Example binary directory: ```C:\dev\bin```
- Example environment directory: ```C:\dev\php```
Download & configure php versions (7.3, 7.4, 8.0, 8.1) to environment directory
- Example: ```C:\dev\php\8.1\php.exe```
Change PHP environment
Open terminal and run
multiphp change version=8.1
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.