npm install --global php-version-manager
pvm --help
# output
Usage: pvm [options] [command]
PHP Version Manager version x.x.x
Options:
-v, --version Output the current application version
-h, --help output usage information
Commands:
status|s Show current PHP version status
ls List available PHP versions
use|u <version> Switch PHP version
xdebug|x [sapi] [status] Manage XDebug status
restart|r Restart PHP-FPM and NGINX
Show current PHP version and XDebug status
pvm status
# output
PHP Version Manager version x.x.x
PHP: 7.3 CLI: OFF FPM: OFF
List installed PHP versions
pvm ls
# output
5.6
7.0
7.1
7.2
7.3
pvm use 7.2
# Toggle XDebug for cli and fpm
pvm xdebug
# Enable XDebug for cli and fpm
pvm xdebug on
# Disable XDebug for cli and fpm
pvm xdebug off
# Enable XDebug for cli only
pvm xdebug cli on
# Disable XDebug for fpm only
pvm xdebug fpm off
# Toggle XDebug for cli
pvm xdebug cli
# Toggle XDebug for fpm
pvm xdebug fpm
pvm restart