PHP Version Manager for Windows
npm install @inspirelectronics/win-pvmwin-pvm` is a package designed to create a simple local php environment with interchangable PHP versions detected and downloaded from windows.php.net
## Install
To install this package you must first have an installation of nodejs and npm, after installation run
`
npm install -g @inspirelectronics/win-pvm
`
After install run the command:
`
win-pvm path
`
This command will return you the PHP symlink path of your installation, to run PHP on a more convenient way add the returned path to you PATH environment variable so php can be called directly on command line (CMD restart required).
## Usage
You have several commands ready to manipulate your php versions and it's functionality:
- Check the available php versions for installation:
`
win-pvm versions
`
- Install / switch to another version of PHP
`
win-pvm use
`
- Uninstall a PHP version
`
win-pvm remove
`
- List all installed versions
`
win-pvm list
`
## Extra Features
- Shortcut to edit PHP.ini in editor (Only VSCode supported)
`
win-pvm edit
`
You can also find PHP.ini on your win-pvm path directory
- Turn on / off any disabled extension ";extension" in your PHP.ini file
`
win-pvm ext
`
- Install xdebug on currently installed PHP version
`
win-pvm xdebug
``