Symfony CLI doesn't find all the php versions on my system

483 Views Asked by At

I created a Symfony 6 project locally on my PC (Windows 11 Entreprise v.21H2) and I want to use a specific version of PHP. I know that we can use different versions by creating a .php-version file in the project root.

So I did this command symfony local:php:list and it only shows Wamp64 and Xampp php that I don't want to use. I have many other versions inside C:/php/ folder. For this project, I need to use php 8.0.19.

My question is : how can I select php 8.0.19 if even Symfony CLI doesn't show it in the list ? And why ?

enter image description here

enter image description here

0

There are 0 best solutions below