Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This package requires php 7 but your PHP version (7.0.8) does not satisfy that requirement. #5480

Closed
tokidoki11 opened this issue Jun 30, 2016 · 8 comments

Comments

@tokidoki11
Copy link

With the following composer.json:

{
     "require": {
    "php":"7",
    "ext-mysqli": "*",
    "ext-gd":"*",
    "ext-ldap": "*",
    "ext-openssl":"*",
    "php-opencloud/openstack": "^2.0"
  },
  "minimum-stability": "dev",
  "prefer-stable":true
}

When I run this command:

Composer install / composer update

I get this output:
This package requires php 7 but your PHP version (7.0.8) does not satisfy that requirement.


And I expected this to happen:
php-opencloud/openstack require php:~7.0
I supposedly be able to install right?

I force update on my development(laptop) environment.

I try to run this production on IBM Bluemix, force install is not a good idea I think
@staabm
Copy link
Contributor

staabm commented Jun 30, 2016

your composer.json is wrong for the php-requirement.

should be e.g. "php": "^7.0"

@alcohol
Copy link
Member

alcohol commented Jun 30, 2016

Please read https://getcomposer.org/doc/articles/versions.md :-)

@alcohol alcohol closed this as completed Jun 30, 2016
@tokidoki11
Copy link
Author

Hi guys,
thanks for replying... matters resolved 👍
thanks a lot

@pbrink231
Copy link

pbrink231 commented Jul 22, 2017

have the same problem but I know it is system configuration. This works perfectly on my windows dev machine but on the Ubuntu production server (still set to dev on the .env) I am having problems. Any suggestions?

A couple commands to check my installs from the earlyer comment.

# php -v
PHP 7.1.7-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jul  7 2017 09:41:45) ( NTS )
# php -i | grep curl
/etc/php/7.1/cli/conf.d/20-curl.ini,
curl
# echo "<?php var_dump(extension_loaded('curl')); ?>" | php
bool(true)

This is the Laravel error being shown

(1/1) FatalThrowableError
Call to undefined function Ixudra\Curl\curl_init()
--
in Builder.php (line 370)

@pbrink231
Copy link

UPDATE with fix.

I installed
apt-get install php-curl

After installing
apt-get install php7.0-curl
It worked perfectly

@locsob
Copy link

locsob commented Jul 27, 2017

I run with some issue on Windows. php -v out '5.6', but i use 7.0. The problem been in 'Path' variable, where global php install 'openserver/modules/php 5.6'. I changed it on 7.0 and it works.

@logicbate
Copy link

logicbate commented Mar 27, 2018

go to
control panel/system security/ system
advanced system settings / environnement variables/ PATH /
search php path and replace by new path c:\wamp64/bin/php/php7.1.9

and it works

@hayjay
Copy link

hayjay commented Apr 12, 2021

Whenever you come accross issues like this, try using composer install --ignore-platform-reqs source : Useful Link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants