PHPackages                             zibun/google-maps-provider - 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. zibun/google-maps-provider

ActiveLibrary

zibun/google-maps-provider
==========================

Geocoder GoogleMaps adapter

4.4.0(7y ago)0131MITPHPPHP ^7.0

Since Jun 17Pushed 6y agoCompare

[ Source](https://github.com/z1bun/google-maps-provider)[ Packagist](https://packagist.org/packages/zibun/google-maps-provider)[ Docs](http://geocoder-php.org/Geocoder/)[ RSS](/packages/zibun-google-maps-provider/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (8)Used By (0)

Google Maps Geocoder provider
=============================

[](#google-maps-geocoder-provider)

[![Build Status](https://camo.githubusercontent.com/71800e35daf78eaa32b7c49c924ca853ac7545cb0c699d1c8b072a340af03f8e/68747470733a2f2f7472617669732d63692e6f72672f67656f636f6465722d7068702f676f6f676c652d6d6170732d70726f76696465722e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/geocoder-php/google-maps-provider)[![Latest Stable Version](https://camo.githubusercontent.com/6054a6a7301d2e661cc292a1e02730f5808894340153c727eefbeba63b95b867/68747470733a2f2f706f7365722e707567782e6f72672f67656f636f6465722d7068702f676f6f676c652d6d6170732d70726f76696465722f762f737461626c65)](https://packagist.org/packages/geocoder-php/google-maps-provider)[![Total Downloads](https://camo.githubusercontent.com/b0df392a1ed210c5ead4c053e3b14ce2d6c6bb1b8af0e5c6226da96218b2c191/68747470733a2f2f706f7365722e707567782e6f72672f67656f636f6465722d7068702f676f6f676c652d6d6170732d70726f76696465722f646f776e6c6f616473)](https://packagist.org/packages/geocoder-php/google-maps-provider)[![Monthly Downloads](https://camo.githubusercontent.com/e8ef6c4e88f4c2942d119c1e50014f8dd8bd1c3d7cbef8583c7d4ef411d52706/68747470733a2f2f706f7365722e707567782e6f72672f67656f636f6465722d7068702f676f6f676c652d6d6170732d70726f76696465722f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/geocoder-php/google-maps-provider)[![Code Coverage](https://camo.githubusercontent.com/7d5ef86348319995c20add78b20ba2016c9b91e4626e73200f1fd811014a91f0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f67656f636f6465722d7068702f676f6f676c652d6d6170732d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/geocoder-php/google-maps-provider)[![Quality Score](https://camo.githubusercontent.com/bb79af3494c8828109412a0d04e994c2de9d46ba849239d09358e362f2c9dbac/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f67656f636f6465722d7068702f676f6f676c652d6d6170732d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/geocoder-php/google-maps-provider)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

This is the Google Maps provider from the PHP Geocoder. This is a **READ ONLY** repository. See the [main repo](https://github.com/geocoder-php/Geocoder) for information and documentation.

Usage
-----

[](#usage)

```
$httpClient = new \Http\Adapter\Guzzle6\Client();

// You must provide an API key
$provider = new \Geocoder\Provider\GoogleMaps\GoogleMaps($httpClient, null, 'your-api-key');

$result = $geocoder->geocodeQuery(GeocodeQuery::create('Buckingham Palace, London'));
```

All requests require a valid API key, however google does have a [free tier](https://cloud.google.com/maps-platform/pricing/) available. Please see [this page for information on getting an API key](https://developers.google.com/maps/documentation/geocoding/get-api-key).

### Google Maps for Business

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

Previously, google offered a "Business" version of their APIs. The service has been deprecated, however existing clients can use the static `business` method on the provider to create a client:

```
$httpClient = new \Http\Adapter\Guzzle6\Client();

// Client ID is required. Private key is optional.
$provider = \Geocoder\Provider\GoogleMaps\GoogleMaps::business($httpClient, 'your-client-id', 'your-private-key');

$result = $geocoder->geocodeQuery(GeocodeQuery::create('Buckingham Palace, London'));
```

### Install

[](#install)

```
composer require geocoder-php/google-maps-provider
```

### Contribute

[](#contribute)

Contributions are very welcome! Send a pull request to the [main repository](https://github.com/geocoder-php/Geocoder) or report any issues you find on the [issue tracker](https://github.com/geocoder-php/Geocoder/issues).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 68.8% 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.

###  Release Activity

Cadence

Every ~113 days

Recently: every ~160 days

Total

7

Last Release

2569d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2184e3ed2c4de65e62667ffc6f68cc5ad9ee9ec90a9f1d1742ac56ca93a28505?d=identicon)[z1bun](/maintainers/z1bun)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (44 commits)")[![jbelien](https://avatars.githubusercontent.com/u/1150563?v=4)](https://github.com/jbelien "jbelien (6 commits)")[![svrdlic](https://avatars.githubusercontent.com/u/8766956?v=4)](https://github.com/svrdlic "svrdlic (4 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (3 commits)")[![z1bun](https://avatars.githubusercontent.com/u/13135730?v=4)](https://github.com/z1bun "z1bun (2 commits)")[![farskies](https://avatars.githubusercontent.com/u/163437514?v=4)](https://github.com/farskies "farskies (1 commits)")[![leevigraham](https://avatars.githubusercontent.com/u/25124?v=4)](https://github.com/leevigraham "leevigraham (1 commits)")[![dkemper](https://avatars.githubusercontent.com/u/1893744?v=4)](https://github.com/dkemper "dkemper (1 commits)")[![arubacao](https://avatars.githubusercontent.com/u/7462542?v=4)](https://github.com/arubacao "arubacao (1 commits)")[![aditya-cherukuri](https://avatars.githubusercontent.com/u/13918532?v=4)](https://github.com/aditya-cherukuri "aditya-cherukuri (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zibun-google-maps-provider/health.svg)

```
[![Health](https://phpackages.com/badges/zibun-google-maps-provider/health.svg)](https://phpackages.com/packages/zibun-google-maps-provider)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[geocoder-php/google-maps-provider

Geocoder GoogleMaps adapter

18517.9M44](/packages/geocoder-php-google-maps-provider)[geocoder-php/geo-plugin-provider

Geocoder GeoPlugin adapter

975.0M8](/packages/geocoder-php-geo-plugin-provider)[geocoder-php/nominatim-provider

Geocoder Nominatim adapter

354.4M27](/packages/geocoder-php-nominatim-provider)[geocoder-php/ipstack-provider

Geocoder Ipstack adapter

60334.1k2](/packages/geocoder-php-ipstack-provider)[swisnl/geocoder-php-nationaal-georegister-provider

PDOK (formerly Nationaal Georegister) provider for Geocoder PHP

28330.8k2](/packages/swisnl-geocoder-php-nationaal-georegister-provider)

PHPackages © 2026

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