phpenv
A PHP version manager for development purposes. More information: https://github.com/phpenv/phpenv.
- Install a PHP version globally:
phpenv install
- Refresh shim files for all PHP binaries known to
phpenv:
phpenv rehash
- List all installed PHP versions:
phpenv versions
- Display the currently active PHP version:
phpenv version
- Set the global PHP version:
phpenv global
- Set the local PHP version, which overrides the global version:
phpenv local
- Unset the local PHP version:
phpenv local --unset
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
