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

2114.5k13[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 today

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 57% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity34

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

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k14](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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