PHPackages                             codingphase/google-distance - 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. codingphase/google-distance

ActiveLibrary[API Development](/categories/api)

codingphase/google-distance
===========================

Google distance matrix API - Estimate travel time and distance for multiple destinations.

v1.0.1(7y ago)0635MITPHPPHP &gt;=7.0

Since May 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/CodingPhase/google-distance)[ Packagist](https://packagist.org/packages/codingphase/google-distance)[ RSS](/packages/codingphase-google-distance/feed)WikiDiscussions master Synced 4d ago

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

Google Distance Matrix API
==========================

[](#google-distance-matrix-api)

Estimate travel time and distance for multiple destinations.

Requirements
============

[](#requirements)

Requires PHP 7.0 or higher.

Installation
============

[](#installation)

The best way to install finalbytes/google-distance-matrix-api is using [Composer](http://getcomposer.org/):

```
$ composer require finalbytes/google-distance-matrix-api
```

Getting Started
===============

[](#getting-started)

```
$distanceMatrix = new GoogleDistanceMatrix('YOUR API KEY');
$distance = $distanceMatrix
    ->setLanguage('nl-NL')
    ->addOrigin('51.458428,6.0541768')
    ->addDestination('48.139212,11.581721')
    ->addDestination('36.721184,-4.420084')
    ->sendRequest();
```

```
$distanceMatrix = new GoogleDistanceMatrix('YOUR API KEY');
$distance = $distanceMatrix
    ->addOrigin('Van Bronckhorststraat 94, 5961SM Horst, The Netherlands')
    ->addDestination('Maistraße 10, 80337 München, Deutschland')
    ->setMode(GoogleDistanceMatrix::MODE_DRIVING)
    ->setLanguage('nl-NL')
    ->setUnits(GoogleDistanceMatrix::UNITS_METRIC)
    ->setAvoid(GoogleDistanceMatrix::AVOID_FERRIES)
    ->sendRequest();
```

For more info, please visit

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~0 days

Total

2

Last Release

2558d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/585fea021c5d2840a3a843dd8bf6cc67942d0224c37acb3044de346eed3a18fc?d=identicon)[Hesto](/maintainers/Hesto)

---

Top Contributors

[![kpacholskipl](https://avatars.githubusercontent.com/u/29837057?v=4)](https://github.com/kpacholskipl "kpacholskipl (3 commits)")

---

Tags

google apigoogle distance matrixdistance matrix

### Embed Badge

![Health badge](/badges/codingphase-google-distance/health.svg)

```
[![Health](https://phpackages.com/badges/codingphase-google-distance/health.svg)](https://phpackages.com/packages/codingphase-google-distance)
```

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[x-fran/g-trends

Google Trends API for PHP

11955.6k](/packages/x-fran-g-trends)[happyr/google-api-bundle

A Symfony2 Wrapper for the Google APIs Client Library for PHP

48196.1k](/packages/happyr-google-api-bundle)[tomshaw/google-api

A Laravel Google API Client.

591.5k](/packages/tomshaw-google-api)

PHPackages © 2026

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