Today We are Going To Solve Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0” in laravel. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.
Contents
How to Fix Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0” Error?
- How to Fix Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0” Error?
To Fix Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0” Error just Add “platform-check”: false. Follow this steps to solve your error: First of all Add “platform-check”: false this to yur composer.json file's config object. And after it run autoload and run the below command:
php artisan config:cache
Then just runcomposer dump-autoload
in your terminal. - Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0”
To Fix Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0” Error just Add
--ignore-platform-reqs
. To solve this error you have to add--ignore-platform-reqs
option to yourcomposer install/composer update
By doing this you can ignore all platform requirements. And you can solve your problem.
Solution 1 : Add “platform-check”: false
Follow this steps to solve your error:
First of all Add “platform-check”: false this to yur composer.json file’s config object. And after it run autoload and run the below command:
php artisan config:cache
Then just run composer dump-autoload
in your terminal.
Solution 2 : Add --ignore-platform-reqs
To solve this error you have to add --ignore-platform-reqs
option to your composer install/composer update
By doing this you can ignore all platform requirements. And you can solve your problem.
Conclusion
So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.
Also Read This Solutions
- npm does not support Node.js v10.19.0 You should probably upgrade to a newer version of node as we can’t make any promises that npm will work with this version
- A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
- remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication
- pip is configured with locations that require TLS/SSL however the ssl module in Python is not available
- ERESOLVE Unable to resolve dependency tree error when installing npm packages