Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

537
Views
Composer dependencies require a PHP version ">= 7.3.0"

When I send a request from postman to my server I get this message as a response:

Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 7.3.0".

I have tried every single solution I have found but nothing has changed.

My composer.json looks like this:

"require": {
    "php": "^7.3|^8.0",
}
"config": {
    "platform": {
        "php": "7.3.0"
    }
    "optimize-autoloader": true,
    "preferred-install": "dist",
    "platform-check": false
},
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

You have already written "platform-check": false. It should work.

Try to use >= or double Pipe || or try the below command

composer install --ignore-platform-reqs

https://getcomposer.org/doc/articles/versions.md#version-range

--ignore-platform-reqs: ignore all platform requirements (php, hhvm, lib-* and ext-*) and force the installation even if the local machine does not fulfill these. See also the platform config option.

https://getcomposer.org/doc/03-cli.md

Update :

After running above command, run below commands in terminal:

  1. php artisan config:cache

  2. composer dump-autoload

over 4 years ago · Santiago Trujillo Report

0

had same problem. had php7.4, 8.0 n 8.1

this is what worked for me:

php8.1 /usr/local/bin/composer install --ignore-platform-reqs

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!