PHPackages                             aram-zahedi/google-distance-matrix - 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. aram-zahedi/google-distance-matrix

ActiveLibrary[API Development](/categories/api)

aram-zahedi/google-distance-matrix
==================================

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

v0.0.16(4y ago)0318BSD-3-ClausePHPPHP &gt;=7.4

Since Dec 2Pushed 4y agoCompare

[ Source](https://github.com/AramZahedi/google-distance-matrix)[ Packagist](https://packagist.org/packages/aram-zahedi/google-distance-matrix)[ RSS](/packages/aram-zahedi-google-distance-matrix/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (1)Versions (12)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 cirovargas/google-distance-matrix is using [Composer](http://getcomposer.org/):

```
$ composer require cirovargas/google-distance-matrix
```

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

[](#getting-started)

```
$distanceMatrix = new GoogleDistanceMatrix('YOUR API KEY');
$distance = $distanceMatrix->setLanguage('cs')
    ->addOrigin('49.950096, 14.668544')
    ->addOrigin('49.950096, 15.668544')
    ->addDestination('50.031817, 14.490880')
    ->addDestination('51.031817, 14.490880')
    ->sendRequest();
```

```
$distanceMatrix = new GoogleDistanceMatrix('YOUR API KEY');
$distance = $distanceMatrix
    ->setOrigin('K Habrovci 447, 251 63 Strančice, Česká republika')
    ->setDestination('Roztylská 2321/19, Chodov, 148 00 Praha-Praha 11, Česká republika')
    ->setMode(GoogleDistanceMatrix::MODE_WALKING)
    ->setLanguage('en-US')
    ->setUnits(GoogleDistanceMatrix::UNITS_IMPERIAL)
    ->setAvoid(GoogleDistanceMatrix::AVOID_HIGHWAYS)
    ->sendRequest();
```

For more info, please visit

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 56% 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 ~179 days

Recently: every ~49 days

Total

11

Last Release

1657d ago

PHP version history (3 changes)v0.0.1PHP &gt;=5.5.0

v0.0.6PHP &gt;=7.0

v0.0.16PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/91d38edab1f6a2cf94f38210a26d4bdeb0cf9810c233cb0865f99bdc38df9f95?d=identicon)[AramZahedi](/maintainers/AramZahedi)

---

Top Contributors

[![cirovargas](https://avatars.githubusercontent.com/u/1972562?v=4)](https://github.com/cirovargas "cirovargas (14 commits)")[![AramZahedi](https://avatars.githubusercontent.com/u/40715409?v=4)](https://github.com/AramZahedi "AramZahedi (8 commits)")[![miroslav-valerian](https://avatars.githubusercontent.com/u/10794336?v=4)](https://github.com/miroslav-valerian "miroslav-valerian (2 commits)")[![Rishibansal1998](https://avatars.githubusercontent.com/u/36564716?v=4)](https://github.com/Rishibansal1998 "Rishibansal1998 (1 commits)")

---

Tags

google apigoogle mapsgoogle distance matrixdistance matrix

### Embed Badge

![Health badge](/badges/aram-zahedi-google-distance-matrix/health.svg)

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

###  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)[yidas/google-maps-services

PHP client library(SDK) for Google Maps API Web Services

721.3M](/packages/yidas-google-maps-services)[happyr/google-api-bundle

A Symfony2 Wrapper for the Google APIs Client Library for PHP

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

PHP bindings for the Outscraper API

1822.2k](/packages/outscraper-outscraper)[1001pharmacies/geolocation-bundle

Provides an abstraction layer for geocoding services.

116.8k](/packages/1001pharmacies-geolocation-bundle)

PHPackages © 2026

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