phpenv:tldr:d57a8
The command phpenv local ${version}
is used to set the local PHP version in a project using phpenv.
phpenv
is a command-line tool used for managing multiple PHP versions on a single machine. It allows you to easily switch between different versions of PHP based on your project's requirements.
The local
command is used to set the PHP version locally for a specific project. By running phpenv local ${version}
, you are specifying the PHP version you want to use for that project.
${version}
is a placeholder that should be replaced with the actual version number you want to use. For example, if you want to set the PHP version to 7.4, the command would be phpenv local 7.4
.
After running the command, phpenv will create a .php-version
file in the current directory, which will contain the specified version number. When you navigate to that project directory, phpenv will detect the .php-version
file and automatically switch to the specified PHP version for that project.