geocoder-php / Geocoder

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

Class 'Geocoder\Provider\GoogleMaps' not found #684

Closed senguttuvang closed 7 years ago

senguttuvang commented 7 years ago

I installed the package using the command provided in the doc

$ composer require geocoder-php/google-maps-provider php-http/guzzle6-adapter php-http/message

But, it throws this exception. I noticed that this class exists but composer somehow not recognising it. Should I have tweak any config so composer autoload would recognise this package?

Nyholm commented 7 years ago

The readme has docs for master. If you run the command before release of 4.0.0 you will get a 3.x version. Try run the following:

composer require geocoder-php/google-maps-provider:dev-master php-http/guzzle6-adapter php-http/message
Nyholm commented 7 years ago

I've just tagged some beta versions, feel free to try them out.

thatryan commented 7 years ago

I just received this same error, but am I reading correct that the issue should be resolved without needing to change branch?