Kris01's avatar

Laravel Composer

I have xampp installed. I copied a laravel project from one computer to another, and when I go composer install it gives me php version erros. I installed the right xampp version and I have php 8, but it is saying I have php 5 when It's not true. What could be the problem?

0 likes
3 replies
Braunson's avatar

Are you running PHP 5.x on your machine (not xampp)? Open a console/terminal and run php -v to see the version.

Also try cd c:\xampp\php and run php -v to see what version of PHP is installed on xampp.

ekpono's avatar

XAMPP can have more than one version of PHP. Go to XAMPP and switch to the latest PHP version available

chiefguru's avatar

@kris01 the other obvious thing to check is to see if your XAMPP PHP directory is in your path.

Please or to participate in this conversation.