zlacker

[return to "PHP 8.2"]
1. revski+X9[view] [source] 2022-12-08 13:36:22
>>TimWol+(OP)
What's the standard way to install php, by using `brew install php` ? Is there a version manager for php itself to have multiple versions of php in the system ?
◧◩
2. adlpz+Tb[view] [source] 2022-12-08 13:46:35
>>revski+X9
I don't believe there's a specific way to install or manage it. Use the facilities your host OS provides just as you'd do with Ruby, Python or Perl.

As per how to select versions easily, the Symfony project provides a Symfony CLI and one of the features it provides is checking for a `.php-version` file in the current directory and selecting the correct php binary from the PATH accordingly.

I use that when I'm dealing with projects on different versions.

[go to top]