File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
[ ![ Software License] ( https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square )] ( LICENSE )
9
9
10
10
This is the a cache provider from the PHP Geocoder. This is a ** READ ONLY** repository. See the
11
- [ main repo] ( https://github.com/geocoder-php/Geocoder ) for information and documentation.
11
+ [ main repo] ( https://github.com/geocoder-php/Geocoder ) for information and documentation.
12
12
13
13
### Install
14
14
@@ -20,11 +20,11 @@ composer require geocoder-php/cache-provider
20
20
The ` ProviderCache ` allows you to use any [ PSR-6] ( https://www.php-fig.org/psr/psr-6/ ) compatible cache driver.
21
21
You can find compatible drivers on [ packagist] ( https://packagist.org/providers/psr/cache-implementation ) .
22
22
23
- By default, the result is cached forever.
23
+ By default, the result is cached forever.
24
24
You can set a cache expiry by passing an integer representing the number of seconds as the third parameter.
25
25
26
26
``` php
27
- $httpClient = new \Http\Adapter\Guzzle6 \Client();
27
+ $httpClient = new \GuzzleHttp \Client();
28
28
$provider = new \Geocoder\Provider\GoogleMaps\GoogleMaps($httpClient);
29
29
30
30
$psr6Cache = new ArrayCachePool(); // Requires `cache/array-adapter` package
@@ -45,5 +45,5 @@ $result2 = $geocoder->geocodeQuery(GeocodeQuery::create('Buckingham Palace, Lond
45
45
46
46
### Contribute
47
47
48
- Contributions are very welcome! Send a pull request to the [ main repository] ( https://github.com/geocoder-php/Geocoder ) or
48
+ Contributions are very welcome! Send a pull request to the [ main repository] ( https://github.com/geocoder-php/Geocoder ) or
49
49
report any issues you find on the [ issue tracker] ( https://github.com/geocoder-php/Geocoder/issues ) .
You can’t perform that action at this time.
0 commit comments