Skip to content

php-vm/pvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pvm

A simple PHP Version manager.

Installation

PNPM

pnpm i -g pvm

NPM

npm i -g pvm

Usage

Options:
  -v, --version                  output the current application version
  -h, --help                     display help for command

Commands:
  status|s                       Show current PHP version status
  setup                          Setup php version manager. Will setup php repository list
  ls [options]                   List PHP available versions and modules
  use|u <version>                Switch PHP version
  install|i [options] <version>  Installs a PHP version or composer
  xdebug|x [sapi] [status]       Manage XDebug status
  restart|r                      Restart PHP-FPM and NGINX
  help [command]                 display help for command

Example for updating from PHP 7.4 to PHP 8.2:

pvm i 8.2
pvm use 8.2