Laravel project not showing in localhost: "Composer detected issues in your platform...."
18,359
You can use the following to install/update commands if you have an invalid PHP version or are missing a PHP extension.
composer update --ignore-platform-reqs
Author by
Ser
Updated on June 15, 2022Comments
-
Ser almost 2 years
When I want to see my Laravel project in localhost, I get the following error message.
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2".
My terminal PHP version is 8.0.2, and my MAMP PHP version is 8.0 (no higher version is available, it has always worked like this). I don't know what else to do. I have already put my composer.json and .lock files at 8.0.2 PHP.
-
arkascha about 3 yearsWell, what do you expect us to do? If your php version is lower than what composer expects, then that won't work...
-
Nico Haase about 3 yearsPlease share more details. Why not use the same PHP version in both environments?
-
-
DP101 about 2 yearsthis is what worked for me
php8.1 /usr/local/bin/composer install --ignore-platform-reqs