Title: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.5"
Tags: laravel;composer-php
Question: I'm trying to upload a plain laravel v5.8 project to a server. It gives me this error
Composer detected issues in your platform: Your Composer dependencies require a PHP version &quot;&gt;= 7.2.5&quot;.
I updated the Laravel version to v6 and it still throws the same thing.
Is there any possible solution I tried many but nothing happens. Thanks in advance.
Comment: Your error statement is not complaining about Laravel itself, but the PHP version. So you can check your PHP version with the command `php -v`. If this PHP version is indeed lower than 7.2.5 then consider upgrading php. You can find here https://laravel.com/docs/6.x/installation that v7.2.5 is required for PHP.

Comment: Does this answer your question? [Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0"](https://stackoverflow.com/questions/65339404/composer-detected-issues-in-your-platform-your-composer-dependencies-require-a)

Here is the accepted answer: I faced this problem using the new version of composer, didn't have seen this issue before, although this question is a bit old the solution can help someone else.
I did this working in a development machine, if you really need to change the PHP version running in your server this isn't for you.
This problem is related to a composer configuration when you run the command &quot;composer install&quot; if you need to work with the configuration you already have and don't want to make changes which could lead to other problems you should:
remove the packages you already have installed which includes this configuration from composer
sudo rm -r vendor
run the command again with this flag: --ignore-platform-reqs
composer install --ignore-platform-reqs
Now composer won't perform this check anymore and you are good to go!


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2021:00:01/16/21', 'FavoriteCount': 2.0, 'PostTypeId': 1, 'Tags': '<laravel><composer-php>', 'Title': 'Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.5"', 'ViewCount': 16017, 'id': 65754407, 'user_AboutMe': '', 'user_AccountId': 13695929.0, 'user_DisplayName': 'Mohamed Mahfouz', 'user_Reputation': 184.0, 'user_Views': 48.0, 'user_id': 9882603.0}}