Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference - Composer error "Your PHP version does not satisfy requirements" after upgrading PHP

After updating PHP from 7.4 to 8.0, I ran composer update on my existing project, and got an error like this:

  • acme/some-package[1.0.0, ..., 1.4.0] requires php ^5.6.4 || ^7.0 -> your php version (8.0.3) does not satisfy that requirement.

What does this mean, and how do I fix it?

(This is a reference answer intended to cover a frequently encountered issue. The scenario is just an example. See also: "How to explain Composer's error log?")

like image 334
IMSoP Avatar asked Sep 05 '25 17:09

IMSoP


1 Answers

If you are using the PHP version 8, some of the plugins which are not yet supported can caused installation error.

composer install --ignore-platform-req=php or composer install --ignore-platform-reqs

This option can be used to set specific requirements that composer can ignore.

like image 200
JMilanes Avatar answered Sep 07 '25 18:09

JMilanes