snippetbashTip
phpenv — A PHP version manager for development purposes. More information: <https://github.com/phpenv/phpenv>
Viewed 0 times
commandphpenvdevelopmentcliphpforversionmanager
Problem
How to use the
phpenv command: A PHP version manager for development purposes. More information: <https://github.com/phpenv/phpenv>.Solution
phpenv — A PHP version manager for development purposes. More information: <https://github.com/phpenv/phpenv>.Install a PHP version globally:
phpenv install {{version}}Refresh shim files for all PHP binaries known to
phpenv:phpenv rehashList all installed PHP versions:
phpenv versionsDisplay the currently active PHP version:
phpenv versionSet the global PHP version:
phpenv global {{version}}Set the local PHP version, which overrides the global version:
phpenv local {{version}}Unset the local PHP version:
phpenv local --unsetCode Snippets
Install a PHP version globally
phpenv install {{version}}Refresh shim files for all PHP binaries known to `phpenv`
phpenv rehashList all installed PHP versions
phpenv versionsDisplay the currently active PHP version
phpenv versionSet the global PHP version
phpenv global {{version}}Context
tldr-pages: common/phpenv
Revisions (0)
No revisions yet.