Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0"

Viewed 5742

I upload my laravel project on azure. However when I go to the link I got this error. My project php version is 8.0.0 and my azure php version is 7.4.11. How can I can increase the version on my azure php.

3 Answers

If you are deploying your application, you need to update your php version to php version 8

I have the same problem and now it already solve.

  • Check PHP version commend # php --version
  • If your PHP 7.4 you need to commend in your laravel project # composer update
  • If you php >=8.0.0 you need to install php 7.4 and commend in your laravel project # composer update

Simply go to vendor/composer/ , then you will find platform_check.php file. Just open it and comment full code. Save it. That's it. You can now use it with lower php verson.

Related