When I send a request from postman to my server I get this message as a response:
Composer detected issues in your platform:
Your Composer dependencies require a PHP version ">= 7.3.0".
I have tried every single solution I have found but nothing has changed.
My composer.json
looks like this:
"require": {
"php": "^7.3|^8.0",
}
"config": {
"platform": {
"php": "7.3.0"
}
"optimize-autoloader": true,
"preferred-install": "dist",
"platform-check": false
},
2
Answers
You have already written
"platform-check": false
. It should work.Try to use
>=
or double Pipe||
or try the below commandhttps://getcomposer.org/doc/articles/versions.md#version-range
https://getcomposer.org/doc/03-cli.md
Update :
After running above command, run below commands in terminal:
php artisan config:cache
composer dump-autoload
had same problem. had php7.4, 8.0 n 8.1
this is what worked for me:
php8.1 /usr/local/bin/composer install --ignore-platform-reqs