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.

◧◩◪
3. mieko+vi[view] [source] 2022-12-08 14:33:56
>>adlpz+Tb
> Use the facilities your host OS provides just as you'd do with Ruby, Python or Perl.

Well that's the thing: I don't know anyone who actively develops in Ruby, Python, Perl or Node that uses the OS-packaged runtimes. The system packages and the language-specific package managers live in different universes.

I've seen this situation blamed on both OS packagers or language ecosystems, but now I just think the goals between the two just are fundamentally at odds.

[go to top]