Hello Guys, How are you all? Hope You all Are Fine. Today I just want to update my composer using composer self-update –2 this command and I am facing following error in my terminal Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0” in laravel. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
- How Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0" Error Occurs ?
- How To Solve Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0" Error ?
- Solution 1: run command with --ignore-platform-reqs
- Solution 2: Check php version
- Summary
How Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0” Error Occurs ?
I just want to update my composer using composer self-update –2 this command and I am facing following error in my terminal.
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0".
How To Solve Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0” Error ?
- How To Solve Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0” Error ?
To Solve Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0” Error Easiest and Simple ever solution is just ignore platform requirements. Just run this command. composer install –ignore-platform-reqs and second solution is First of all In you project you can check the platform check file your-project-path/vendor/composer/platform_check.php $issues = array(); Then just remove extra code Or comment it. Add the platform check option in the composer.json config section like this. Now you can run composer update.
- Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0”
To Solve Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0” Error Easiest and Simple ever solution is just ignore platform requirements. Just run this command. composer install –ignore-platform-reqs and second solution is First of all In you project you can check the platform check file your-project-path/vendor/composer/platform_check.php $issues = array(); Then just remove extra code Or comment it. Add the platform check option in the composer.json config section like this. Now you can run composer update.
Solution 1: run command with –ignore-platform-reqs
Easiest and Simple ever solution is just ignore platform requirements. Just run this command.
composer install --ignore-platform-reqs
OR
composer update --ignore-platform-reqs
Solution 2: Check php version
First of all In you project you can check the platform check file your-project-path/vendor/composer/platform_check.php
$issues = array();
Then just remove extra code Or comment it. Add the platform check option in the composer.json config section like this.
"config": { "platform-check": false },
Now you can run
composer update
when composer update run platform_check.php will be deleted and your error will be solved.
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
I had this problem when I was upgrading my Laravel 8 to 9. It required php version 8.0.2+. I was a bit confused because when I ran php -v, it returned php 8.1. I didn’t understand why my system wasn’t working.
It turned out that I had installed php-fpm for php 7.4 and had forgotten/not realized that I had to configure version-specific settings for apache when I installed it.
Looking at the Apache logs /var/log/apache2/my-website-error.log, I was able to see that the error being thrown was referencing php7.4-fpm. Looking into /etc/apache2/conf-available, I saw php7.5-fpm.conf.
I had to apt install php8.0-fpm, and then run a2enmod proxy_fcgi and a2enconf php8.0-fpm (as root). Then, restarting apache (systemctl reload apache2).
OS is Ubuntu 20.04