Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Root composer.json requires php ^7.2.5 but your php version (8.0.3) does not satisfy that require


It's becouse in your project in composer.json file you have:

"require": {
    "php": ">=7.3",
    .....
},
Try to update this requirement to:

"require": {
    "php": "^7.3|^8.0",
    .....
},
Comment

- root composer.json requires php ^7.1.3 but your php version (8.0.3) does not satisfy that requirement.

It's becouse in your project in composer.json file you have:

"require": {
    "php": ">=7.3",
    .....
},
Try to update this requirement to:

"require": {
    "php": "^7.3|^8.0",
    .....
},
Comment

- root composer.json requires php ^7.2 but your php version (8.0.1) does not satisfy that requirement.

Your project using php7.2 version and composer installed with 8.0.1.
Update your composer with php 7.2 instead 8.0.1. problem will solve.
Comment

root composer.json requires php ^7.3 but your php version (8.0.3) does not satisfy that requirement.

  "license": "MIT",
    "require": {
        "php": "^7.3|^8.0",

    },
Comment

root composer.json requires php ^7.1.3 but your php version (8.0.3) does not satisfy that requirement.

On Mac using Home Brew, you can switch php versions easily:
brew unlink php@8.0
brew link php@7.1

Or follow the upgrade path to get your app to support the newer php version
Comment

root composer.json requires php ^7.1.3 but your php version (8.0.1) does not satisfy that requirement.

for windows 
download php version you require
https://www.php.net/releases/index.php
then in variable environment of windows, edit PATH key, find php and update path to your new php version(after extract)

for ubuntu/linux
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.1

then if in future you want to switch between your php versions, 
sudo update-alternatives --config php
Comment

PREVIOUS NEXT
Code Example
Php :: laravel get route parameters in blade 
Php :: maatwebsite/excel package 5.2 laravel 
Php :: declare variable in php class 
Php :: how to make model and controller in laravel 
Php :: ternaire echo isset php 
Php :: get joomla group ids 
Php :: how to delete item from array php 
Php :: php array_push in foreach duplicate 
Php :: php bulk insert mysql 
Php :: php append n time pattern to string 
Php :: php if elseif endif 
Php :: real time update using ajax php 
Php :: get specific word from string php 
Php :: get taxonomy name in taxonomy page wordpress dev 
Php :: url segment laravel 
Php :: php webpage to string 
Php :: php print object 
Php :: Invalid argument supplied for foreach() in C 
Php :: php check if valid xml 
Php :: laravel model set new attribute 
Php :: php socket connect 
Php :: pdo mysqli error handling 
Php :: html in php 
Php :: php contain 
Php :: wordpress enqueue if shortcode 
Php :: laravel has many with ids 
Php :: php get last index of array 
Php :: image upload in php code with databases 
Php :: how to pass data to controller in laravel 
Php :: laravel 9 excel 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =