geocoder-php / Geocoder

The most featured Geocoder library written in PHP.
https://geocoder-php.org
MIT License
3.95k stars 517 forks source link

Can not install "google-maps-provider" because if requirements #902

Closed JonathanBaudoin closed 5 years ago

JonathanBaudoin commented 5 years ago

Hello,

I'm trying to install geocoder-php/google-maps-provider, but I can't. I have these errors :

$ composer require geocoder-php/google-maps-provider
Using version ^4.2 for geocoder-php/google-maps-provider
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for geocoder-php/google-maps-provider ^4.2 -> satisfiable by geocoder-php/google-maps-provider[4.2.0].
    - geocoder-php/google-maps-provider 4.2.0 requires geocoder-php/common-http ^4.0 -> satisfiable by geocoder-php/common-http[4.0.0, 4.1.0].
    - geocoder-php/common-http 4.0.0 requires php-http/httplug ^1.0 -> satisfiable by php-http/httplug[v1.0.0, v1.1.0].
    - geocoder-php/common-http 4.1.0 requires php-http/httplug ^1.0 -> satisfiable by php-http/httplug[v1.0.0, v1.1.0].
    - Can only install one of: php-http/httplug[v2.0.0, v1.0.0].
    - Can only install one of: php-http/httplug[v2.0.0, v1.1.0].
    - php-http/guzzle6-adapter v2.0.0 requires php-http/httplug ^2.0 -> satisfiable by php-http/httplug[v2.0.0].
    - Installation request for php-http/guzzle6-adapter ^2.0 -> satisfiable by php-http/guzzle6-adapter[v2.0.0].

Installation failed, reverting ./composer.json to its original content.

There is an incompatibility between geocoder-php/common-http which requires php-http/httplug ^1.0 and php-http/guzzle6-adapter which requires php-http/httplug ^2.0.

Did I miss something, or there is an issue ?

I precise that for my test, I only install Symfony 3.4 and make a composer require geocoder-php/google-maps-provider.

Nyholm commented 5 years ago

Hey. You are doing nothing wrong. We just have not made support for HTTPlug 2.0 yet. I added a PR for that.

(Yes, it is always this simple. HTTPlug 1.0 and 2.0 is pretty much the same)

Nyholm commented 5 years ago

Btw, you can install php-http/guzzle6-adapter: ^1.0 and you will not have this issue.