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

ottaviane's avatar

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

Hi all, I did

 php -v
PHP 8.3.11 (cli) (built: Aug 30 2024 09:27:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.11, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.11, Copyright (c), by Zend Technologies

but when I try to access to my laravel 10 I obtain this error:

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

This is my composer.json:

and I installed thos extension:

sudo apt install openssl php8.3-{bcmath,curl,json,mbstring,mysql,tokenizer,xml,zip}

What is my mistake? Help me please! Thanks BYE

0 likes
4 replies
ottaviane's avatar

and I made also this:

$ composer update
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   INFO  Discovering packages.

  laravel/sail .................................................................................................. DONE
  laravel/sanctum ............................................................................................... DONE
  laravel/tinker ................................................................................................ DONE
  laravel/ui .................................................................................................... DONE
  nesbot/carbon ................................................................................................. DONE
  nunomaduro/collision .......................................................................................... DONE
  nunomaduro/termwind ........................................................................................... DONE
  spatie/laravel-ignition ....................................................................................... DONE

84 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force

   INFO  No publishable resources for tag [laravel-assets].

No security vulnerability advisories found.
gych's avatar
gych
Best Answer
Level 29

Try to add this to the config {} in your composer.json file

    "platform": {
        "php": "8.3.11"
    },

1 like
ottaviane's avatar

Whow, you saved me!!!! thank you very mutch.

Please or to participate in this conversation.