PHPackages                             dan-har/google-maps-services-php - 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. dan-har/google-maps-services-php

ActiveLibrary[API Development](/categories/api)

dan-har/google-maps-services-php
================================

Google maps web services php client.

0.1.0(8y ago)0571MITPHPPHP &gt;=5.5.9

Since Feb 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dan-har/google-maps-services-php)[ Packagist](https://packagist.org/packages/dan-har/google-maps-services-php)[ RSS](/packages/dan-har-google-maps-services-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (2)Used By (1)

google-maps-services-php
========================

[](#google-maps-services-php)

PHP client for google maps api service.

Installation
------------

[](#installation)

Install using composer

```
composer require dan-har/google-maps-services-php

```

Usage
-----

[](#usage)

```
$placesService = new PlacesApi(new Client(), Auth::fromKey('GOOGLE_API_KEY'));

$placeId = 'ChIJN1t_tDeuEmsRUsoyG83frY4';

try {
    $placeResponse = $placesService->details($placeId);
} catch (ResourceRequestException $e) {
    // handle request exception, for example caused by timeout
}

// check if the response is ok, if so we have a result for the place id
if( ! $placeResponse->isOk()) {
    // handle request failure, for example no results, wrong place id etc.
}

$result = $placeResponse->result();

// check for address component
foreach($result->addressComponents as $addressComponent) {

    if($addressComponent->isType(AddressType::LOCALITY)) {
        //
    }
}

// get the geometry object.
$geometry = $result->geometry;
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

3018d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43f2362d8de0779784e36d288a8bdb11c5f7c9c03937f6adb6c330d864609372?d=identicon)[danhar](/maintainers/danhar)

---

Top Contributors

[![dan-har](https://avatars.githubusercontent.com/u/8581476?v=4)](https://github.com/dan-har "dan-har (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dan-har-google-maps-services-php/health.svg)

```
[![Health](https://phpackages.com/badges/dan-har-google-maps-services-php/health.svg)](https://phpackages.com/packages/dan-har-google-maps-services-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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