Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

GodziLaravel's avatar

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

Hello , I'm facing thi issue when I run my Lumen app on the browser.

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

but when I php -v :

php -v
PHP 8.0.5 (cli) (built: May  3 2021 11:30:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.5, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.5, Copyright (c), by Zend Technologies

Any suggestion ?

Thanks

0 likes
4 replies
CorvS's avatar

Did you check your composer.json? What php version is "required" there?

"require": {
    "php": "^7.4|^8.0",
    ...
GodziLaravel's avatar

Thanks @corvs

it's :

 "require": {
        "php": "^7.3|^8.0",
        "laravel/lumen-framework": "^8.0"
    },

CorvS's avatar

Where does the error occur, on your local machine or on your production server? If it's the former, what development environment are you using? Homestead?

GodziLaravel's avatar

@corvs

It's on prodution server (Raspberry pi, ubuntu 16.04) .

The development env is not Homestead, I just installed composer , then I installed Lumen.

During installation there was no errors , but as I said, when I go to the browser I got that error message !

Please or to participate in this conversation.