PHP code example of rezzza / google-geocoder

1. Go to this page and download the library: Download rezzza/google-geocoder library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rezzza / google-geocoder example snippets


$googleAddressRepository = new Rezzza\GoogleGeocoder\GoogleAddressRepository(
    new Rezzza\GoogleGeocoder\GoogleGeocodeClient(
        new Ivory\HttpAdapter\CurlHttpAdapter(),
        'YOUR_GOOGLE_API_KEY'
    ),
    new Rezzza\GoogleGeocoder\Model\AddressFactory
);