@vincej you could try the --ignore-platform-reqs:
https://getcomposer.org/doc/03-cli.md#install-i But there could be something else going on. Does all install and work.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have just installed composer and Laravel 8 onto DigitalOcean Ubuntu 20 server and I am getting this error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0".
The stupid thing I am running PHP 8.0.12
PHP 8.0.12 (cli) (built: Oct 22 2021 12:34:48) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.12, Copyright (c) Zend Technologies
with Zend OPcache v8.0.12, Copyright (c), by Zend Technologies
Furthermore, I ran a test looking at my platform dependancies and they have all come out clean:
Checking platform requirements for packages in the vendor dir
ext-curl 8.0.12 success
ext-dom 20031129 success
ext-fileinfo 8.0.12 success
ext-filter 8.0.12 success
ext-json 8.0.12 success
ext-libxml 8.0.12 success
ext-mbstring 8.0.12 success
ext-openssl 8.0.12 success
ext-pcre 8.0.12 success
ext-phar 8.0.12 success
ext-tokenizer 8.0.12 success
ext-xml 8.0.12 success
ext-xmlwriter 8.0.12 success
lib-pcre 10.34 success
php 8.0.12 success
I have also rebooted my machine.
CodeGrepper tells me I should just ignore the platform requirements, but that does not feel right to me. I have never had this error before.
composer install --ignore-platform-reqs
Any ideas what is going on and how to fix it?
Many thanks !
Please or to participate in this conversation.