geocoder-php / Geocoder

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

Separate HTTP providers #681

Closed Nyholm closed 7 years ago

Nyholm commented 7 years ago

About 40% of the providers we currently have in this lib does not require HTTP. The common package should therefore not require PSR7 and HTTPlug stuff. However, there is one class in common (AbstractHttpProvider) that is depending on HTTP stuff.

We could: A) Ignore the dependencies of this class and move all php-http/* requirements to the providers. B) Create a new package geocoder-php/common-http which has all php-http/* requirements and the AbstractHttpProvider.

I think we should do B since it is better package design. AbstractHttpProvider is really an outlier in common.

arubacao commented 7 years ago

B) ✅