PHP Switcher
A simple and efficient tool to switch between different PHP versions on Windows systems.
Description
PHP Switcher is a command-line utility that allows you to easily switch between different PHP versions installed on your Windows system. It's particularly useful for developers who need to work with multiple PHP versions for different projects.
Features
- Quick switching between PHP versions
- Automatic configuration of Cursor IDE settings
- Simple command-line interface
- Version management and validation
Installation
1. Setup Directory Structure
Create a new directory for PHP versions (default: C:/php/)
mkdir C:\php
Note: You can choose a different location, but you'll need to update the PHPS_PATH in switch.bat
2. Install PHP Versions
Download and install different PHP versions into separate folders:
D:/php/
├── 7.4/ (PHP 7.4 installation)
├── 8.1/ (PHP 8.1 installation)
├── 8.2/ (PHP 8.2 installation)
└── on/ (Active PHP version)
Usage
To switch PHP versions, use the following command:
switch.bat [php-version]
For example:
switch.bat 8.1