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?")
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With