PHP Classes

Multiple PHP Versions Windows: Switch the version of PHP that will run on Windows

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-12-12 (12 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 41 This week: 5All time: 10,253 This week: 29Up
Version License PHP version Categories
multiphp 1.0MIT/X Consortium ...5PHP 5, Console, Windows
Description Author

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.

Picture of Isa Eken
  Performance   Level  
Name: Isa Eken <contact>
Classes: 15 packages by
Country: Turkey Turkey
Innovation award
Innovation award
Nominee: 9x

Details

MultiPHP

Installation

  • 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
  Files folder image Files  
File Role Description
Plain text file composer.json Data Auxiliary data
Plain text file LICENSE Lic. License text
Plain text file multiphp Example Example script
Plain text file multiphp.bat Data Auxiliary data
Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:41
This week:5
All time:10,253
This week:29Up
For more information send a message to info at phpclasses dot org.