Bhavin
Bhavin

Reputation: 2168

phpinfo() and laravel installation through composer both are showing diffrent version of php

I'm facing this issue. I have a problem that

phpinfo() shows me 5.5.11 version is installed.

But while installing laravel 5.2 through composer it showing me following error,

[InvalidArgumentException] Could not find package laravel/laravel with version 5.2.* in a version installable using your PHP version 5.5.8.

Laravel 5.2 needs,

Both are working properly. And My current version is 5.5.11 which is >= 5.5.9 so what is the error. I can't figure it out.

EDIT :- I have already set environment variable like this,

PATH=%PATH%;C:\xampp\php.

php.exe file in this path in my windows.

Upvotes: 0

Views: 2988

Answers (1)

Johnny You
Johnny You

Reputation: 5

plz check your local path , copy your php environment path. and open the floder with the path, check the php version in this path.

seems you should have differet php version.

Upvotes: 0

Related Questions