PHPackages                             cderue/googlemaps - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cderue/googlemaps

ActiveModule[API Development](/categories/api)

cderue/googlemaps
=================

A Zend Framework module that provides a PHP wrapper to the Google Maps Geocoding API

2014.4k13[3 issues](https://github.com/cderue/GoogleMaps/issues)[2 PRs](https://github.com/cderue/GoogleMaps/pulls)PHP

Since Oct 18Pushed 7y ago4 watchersCompare

[ Source](https://github.com/cderue/GoogleMaps)[ Packagist](https://packagist.org/packages/cderue/googlemaps)[ RSS](/packages/cderue-googlemaps/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

GoogleMaps
==========

[](#googlemaps)

A Zend Framework 2 module that provides a PHP wrapper to the Google Maps Geocoding API

Geocoding example
-----------------

[](#geocoding-example)

This example show how to use ZF2 GoogleMaps module to find locations by address (geocoding).

```
use GoogleMaps;

$address = '1600 Amphitheatre Parkway, Mountain View, CA';

$request = new Request();
$request->setAddress($address);

$proxy = new Geocoder();
$response = $proxy->geocode($request);

var_dump($response);
```

Reverse geocoding example
-------------------------

[](#reverse-geocoding-example)

This example show how to use ZF2 GoogleMaps module to find locations by latitude and longitude (reverse geocoding).

```
use GoogleMaps;

$lat = 40.714224;
$lng = -73.961452;

$request = new Request();
$request->setLatLng($lat . ',' . $lng);

$proxy = new Geocoder();
$response = $proxy->geocode($request);

var_dump($response);
```

Google Maps for Business
------------------------

[](#google-maps-for-business)

If you are using Google Maps for Business, you must set the clientId and sign the request with your private key.

```
use GoogleMaps;

$address = '1600 Amphitheatre Parkway, Mountain View, CA';
$clientId = 'my_client_id';
$privateKey = 'my_private_key';

$request = new Request();
$request->setAddress($address);
$request->setClient($clientId);
$request->sign($privateKey);

$proxy = new Geocoder();
$response = $proxy->geocode($request);

var_dump($response);
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/13dd548a4c9c58786d43c56c370131ef4ea9a01c23ad6d1450a94ba70400ebb1?d=identicon)[cderue](/maintainers/cderue)

---

Top Contributors

[![cderue](https://avatars.githubusercontent.com/u/318685?v=4)](https://github.com/cderue "cderue (13 commits)")[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (3 commits)")[![AV4TAr](https://avatars.githubusercontent.com/u/281805?v=4)](https://github.com/AV4TAr "AV4TAr (2 commits)")[![soyoz](https://avatars.githubusercontent.com/u/1260475?v=4)](https://github.com/soyoz "soyoz (1 commits)")

### Embed Badge

![Health badge](/badges/cderue-googlemaps/health.svg)

```
[![Health](https://phpackages.com/badges/cderue-googlemaps/health.svg)](https://phpackages.com/packages/cderue-googlemaps)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
