. Advertisement .
..3..
. Advertisement .
..4..
Laravel is a free, open-source PHP web framework created by Taylor Otwell and intended to develop web applications that follow the model view controller architecture and are based on Symfony.
One of the most frequently asked errors, for example, is “Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement in laravel“. So, how can this be resolved? We will discuss together to figure out the best solutions for you.
When Does The Error “Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement in laravel” Happen?
You are attempting to complete your task but are encountering the following error.
Project 'org.springframework.boot:spring-boot-starter-parent:2.4.0' not found
The Top Solutions For The Error “Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement in laravel”
Solution 1: Use this code
If you are using composer install and encountering this error, run the composer install command while ignoring platform requirements. Execute this command to solve the error ”Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement in laravel”.
composer install --ignore-platform-reqs
And your problem should be resolved.
Solution 2: Update php requirement in composer.json
This error occurs due to the php version specified in your composer.json file, which looks like this.
"require": {
"php": ">=7.3",
},
Change this requirement to PHP: “7.3|8.0” something along these lines.
"require": {
"php": "^7.3|^8.0",
},
For easier development, PHP 7.3 adds some syntax features, the capability to give an error when encoding or parsing JSON, support for samesite cookies, enhance logging in the FastCGI Process Manager (php-fpm), expand LDAP controls, add case-folding case-mapping and support in mbstring functions, enhance password hashing, and update its PCRE library.
A significant change to the PHP language is PHP 8.0. Named arguments, attributes, union types, constructor property promotion, match expressions, JIT, nullsafe operators, and enhancements to the type system, consistency and error handling are just a few of the many new features and optimizations it includes.
Conclusion
Taylor Otwell created the first version of Laravel in June 2011 as an alternative to CodeIgniter. With this framework, developers are supported with many new features, which are more efficient and easier to implement. Until now, Laravel has been developed to version 5.8 with many new improvements. If you’re stuck on the error “Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement in laravel”, the remedies listed above are the fastest way. People have a growing community where everybody is usually willing to help if you still need advice or have frequent doubts. Finally, we hope you’re having fun with the amazing code options and appreciate spending time reading.
Read more
→ The Three Effective Methods For “laravel/ui[v3.2.0, …, 3.x-dev] require illuminate/console ^8.0”?
Leave a comment