1.0.2 • Published 3 months ago

@inspirelectronics/win-pvm v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

Windows PHP Version Manager (win-pvm)

Version

win-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 <php-version>
  • Uninstall a PHP version

    win-pvm remove <php-version>
  • 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 <extension> <action:on|off>
  • Install xdebug on currently installed PHP version

    win-pvm xdebug

Information

This package was developed as an internal tool, it is provided in case of a similar environment, this project is not for comercial usage nor a solution to deploy production environments.

Licence

win-pvm is open-sourced software licensed under the MIT license.