only if you're using .py file:
-
clone the repo
git clone https://github.com/maged909/windows-php-switcher-gui.git -
change the current directory to windows-php-switcher-gui
cd windows-php-switcher-gui -
install python requirements
pip install -r requirements.txt
or check out the Releases :)
only if you're using .py file:
customtkinter==5.2.0
tabulate==0.9.0
ttkthemes==3.2.2
config.js will contain the information about the available php versions and it would look something like that, you wouldn't need to edit the file directly as the app have an "Edit Config" tab
{
"php7.3": {
"path": "C:\\xampp\\php"
},
"php8.2.3": {
"path": "C:\\xampp\\php823"
}
}
- each php version must have path
- path and name must be unique for each php version
- path must be a valid absolute path to the php folder not file and cannot contain ";"
to use it just run the phpSwitcher.py on a terminal that has an adminstrator permissions
python phpSwitcherGui.py
or you can simply double click the phpSwitcherGui.py file Or the .exe file
- keep in mind that the program would ask for primission that's just coz it needs that to modify the system environment variable "PATH"
- after changing the php any already opened terminals would still be working with the old php so you need to restart them
also you can check the console app version of php-switcher here https://github.com/maged909/windows-php-switcher-gui

