geocoder-php / Geocoder

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

Unable to install provider with Symfony HTTP Client #1025

Closed qdequippe closed 4 years ago

qdequippe commented 4 years ago

Hi,

I am trying to install a provider using Symfony HTTP Client but an error occurs.

composer require geocoder-php/ipstack-provider nyholm/psr7 symfony/http-client
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - geocoder-php/common-http 4.2.0 requires php-http/client-implementation ^1.0 -> no matching package found.
    - geocoder-php/common-http 4.1.0 requires php-http/client-implementation ^1.0 -> no matching package found.
    - geocoder-php/common-http 4.0.0 requires php-http/client-implementation ^1.0 -> no matching package found.
    - geocoder-php/ipstack-provider 0.1.0 requires geocoder-php/common-http ^4.0 -> satisfiable by geocoder-php/common-http[4.0.0, 4.1.0, 4.2.0].
    - Installation request for geocoder-php/ipstack-provider ^0.1.0 -> satisfiable by geocoder-php/ipstack-provider[0.1.0].

I don't understand why because Symfony HTTP Client provides this implementation.

I also tried to require psr/http-client but without success.

qdequippe commented 4 years ago

@nicolas-grekas maybe you have an idea? :)

nicolas-grekas commented 4 years ago

You need symfony/http-client v4.4 (unreleased yet) to have it implement php-http/client-implementation.