[英]How to use composer for different version of Xampp and php in Windows?
I have different versions of xampp
installed in my windows 10 pc . 我在Windows 10 pc中安装了不同版本的xampp
。 Recently i installed xampp
having php
version 5.6.x
as i have to work on projects requiring php
version >= 5.6
. 最近我安装了xampp
其php
版本为5.6.x
因为我必须在需要php
版本>= 5.6
项目上工作。 I also have composer
installed which currently uses php
version 5.4.x
of xampp
installed before. 我还安装了composer
,该composer
目前使用以前安装的xampp
5.4.x
版php
。
My question is how can i make composer
use this new version php 5.6
when creating and downloading packages which require minimum of php 5.6
. 我的问题是如何让composer
使用这个新版本的PHP 5.6
创建和需要的PHP的最低下载包时5.6
。 Currently when i try to install packages requiring 5.6
it's giving me error this package requires php >=5.6 but your PHP version (5.4) does not atisfy that requirement
. 当前,当我尝试安装要求5.6
的this package requires php >=5.6 but your PHP version (5.4) does not atisfy that requirement
出现错误, this package requires php >=5.6 but your PHP version (5.4) does not atisfy that requirement
。
Thanks in advance 提前致谢
I checked the PATH variable and it contains: 我检查了PATH变量,它包含:
C:\Program Files (x86)\ProccessMaker\Php; C:\xampp\php;
So... maybe you have another program installed with PHP. 所以...也许您已经用PHP安装了另一个程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.