phpenv

phpenv

TLDR

Install a PHP version globally

>_ phpenv install [version]
copy

Refresh shim files for all PHP binaries known to phpenv

>_ phpenv rehash
copy

List all installed PHP versions

>_ phpenv versions
copy

Display the currently active PHP version

>_ phpenv version
copy

Set the global PHP version

>_ phpenv global [version]
copy

Set the local PHP version, which overrides the global version

>_ phpenv local [version]
copy

Unset the local PHP version

>_ phpenv local --unset
copy

Copied to clipboard
free 100$ digital ocean credit