Skip to content

Bogardo/php-version-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Version Manager

NPM NPM NPM

Installation

npm install --global php-version-manager

Usage

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

Status

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 versions

List installed PHP versions

pvm ls

# output
5.6
7.0
7.1
7.2
7.3

Switch PHP version

pvm use 7.2

Manage XDebug

# 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

Restart Nginx and PHP-FPM

pvm restart

About

PVM - PHP Version Manager

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published