Skip to main content

A PHP version manager for development purposes.

# To install a PHP version globally:
phpenv install <version>

# To refresh shim files for all PHP binaries known to 'phpenv':
phpenv rehash

# To list all installed PHP versions:
phpenv versions

# To display the currently active PHP version:
phpenv version

# To set the global PHP version:
phpenv global <version>

# To set the local PHP version, which overrides the global version:
phpenv local <version>

# To unset the local PHP version:
phpenv local --unset