Thanks to visit codestin.com
Credit goes to github.com

Skip to content

usepvm/pvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Version Manager for Windows

Installation & Setup

Clone the repo and add the directory to you Path variable.

git clone https://github.com/drissboumlik/pvm

cd pvm

Run this command to setup pvm

  • Use '--overwrite-path-backup' option to overwrite the backup of the PATH variable (if it exists).
pvm setup [--overwrite-path-backup]

Usage

Display the avilable options

pvm help

Display active PHP version

pvm current

This one lists the PHP installations. Type 'available' at the end to see what can be installed. Add -f or --force to load from the online source.

pvm list [available [-f]] # or --force

Install a specific version.

  • Add --xdebug to enable xdebug
  • Add --opcache to enable opcache
  • Add --dir=/absolute/path/ to specify a custom installation directory
pvm install <version> [--xdebug] [--opcache] [--dir=/absolute/path/]

Uninstall a specific version

pvm uninstall <version>

Switch to use the specified version

pvm use <version>

Manage php.ini settings and extensions directly from the CLI.

Enable or disable PHP multiple extensions

pvm ini enable xdebug opcache

pvm ini disable xdebug opcache

Set or Get multiple settings values

pvm ini set memory_limit=512M max_file_uploads=20

pvm ini get memory_limit max_file_uploads

Restore backup

pvm ini restore

Note

Most of the commands edits or adds to the system environment variables, to reload the updates without restarting your terminal, you need to install chocolatey, and run refreshenv command

About

PHP Version Manager for windows

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors 2

  •  
  •