Skip to content

Commit 11d175b

Browse files
andreasnijNyholm
authored andcommitted
Add php-http/message to README install instructions (#606)
* Add php-http/message to README install instructions php-http/message contains the GuzzleMessageFactory needed for message factory auto discovery to work. * Correct namespace for StatefulGeocoder in README
1 parent 23c7951 commit 11d175b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ since each HTTP-based provider implements
8383
```php
8484
$adapter = new \Http\Adapter\Guzzle6\Client();
8585
$provider = new \Geocoder\Provider\GoogleMaps($adapter);
86-
$geocoder = new StatefulGeocoder($provider, 'en');
86+
$geocoder = new \Geocoder\StatefulGeocoder($provider, 'en');
8787

8888
$geocoder->geocode(...);
8989
$geocoder->reverse(...);
@@ -228,10 +228,10 @@ Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-ht
228228
which defines how HTTP message should be implemented. You can use any library to send HTTP messages
229229
that implements [php-http/client-implementation](https://packagist.org/providers/php-http/client-implementation).
230230

231-
To use Guzzle 6 you should run the follwing command:
231+
To use Guzzle 6 you should run the following command:
232232

233233
```
234-
$ composer require php-http/guzzle6-adapter
234+
$ composer require php-http/guzzle6-adapter php-http/message
235235
```
236236

237237
### Providers

0 commit comments

Comments
 (0)