PHPackages                             flarone/google-matrix-api - 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. flarone/google-matrix-api

ActiveLibrary

flarone/google-matrix-api
=========================

Wrapper for the Google Distance Matrix API (and Laravel friendly)

1.0.4(3y ago)116MITPHPPHP ^7.2|^7.3|^8.0|^8.1|^8.2

Since Dec 21Pushed 3y agoCompare

[ Source](https://github.com/flarone/google-matrix-api)[ Packagist](https://packagist.org/packages/flarone/google-matrix-api)[ RSS](/packages/flarone-google-matrix-api/feed)WikiDiscussions master Synced 1mo ago

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

Google Matrix Api in Laravel
============================

[](#google-matrix-api-in-laravel)

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1.3, &gt;= 8.0.\*, &gt;= 8.1.\*, &gt;= 8.2.\*
- Laravel &gt;= 5.5.\*, 6.\*, 7.\*, 8.\*, 9.\*, 10.\*

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

[](#installation)

Require this package with composer.

```
composer require flarone/google-matrix-api
```

To publishes config `config/google-matrix-api.php`, use command:

```
php artisan vendor:publish --tag="google-matrix"
```

You must set your [Google Maps API Key](https://developers.google.com/maps/documentation/distance-matrix/get-api-key) GOOGLE\_MAPS\_MATRIX\_API\_KEY in your .env file like so:

```
GOOGLE_MAPS_MATRIX_API_KEY=ThisIsMyGoogleApiKey
```

Usage
-----

[](#usage)

```
// Use Facades
use Flarone\GoogleMatrix\Facades\GoogleMatrix;

$matrix = GoogleMatrix::calculate('FromAddress', 'To Address');

// Use Helper Function
$matrix = google_matrix('From Address', 'To Address');
```

Test
----

[](#test)

```
composer test
```

Credits
-------

[](#credits)

- [Flarone](https://github.com/flarone)

For more info, please visit

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~22 days

Total

5

Last Release

1156d ago

PHP version history (2 changes)1.0PHP ^7.2|^7.3|^8.0|^8.1

1.0.4PHP ^7.2|^7.3|^8.0|^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/51fd7905d0acba590e8e161f4c10f91eef023650ec78751bb7885ce4e9664df0?d=identicon)[Flarone](/maintainers/Flarone)

---

Top Contributors

[![MarcelWiebenga](https://avatars.githubusercontent.com/u/10196899?v=4)](https://github.com/MarcelWiebenga "MarcelWiebenga (5 commits)")

---

Tags

googlematrixgoogle apiGoogle MatrixGoogle Matrix Api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/flarone-google-matrix-api/health.svg)

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

###  Alternatives

[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[x-fran/g-trends

Google Trends API for PHP

11955.6k](/packages/x-fran-g-trends)[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)
