PHPackages                             vivdub/distmatrix - 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. vivdub/distmatrix

ActiveLibrary[API Development](/categories/api)

vivdub/distmatrix
=================

The package is intented to use google distance matrix api to find the time required to travel between destinations.

022PHP

Since Aug 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vivdub/DistMatrix)[ Packagist](https://packagist.org/packages/vivdub/distmatrix)[ RSS](/packages/vivdub-distmatrix/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

\# DistMatrix This is a laravel package using Google Distance Matrix Api, to find the time required to travel between destinations.

 **Using the package**

- Use name space:
    *use Vivdub\\DistMatrix\\GMap;*
- Create Object:
    $gmap = new GMap(env("DIST\_MATRIX\_API\_KEY", ""));
- Provide coordinates:
    $gmap-&gt;timeWithCoordinates(array($source\_lat,$source\_lon), array(array(dest\_lat1, dest\_lon1), array(dest\_lat2, dest\_lon2)));
- Get the duration text.
    $gmap-&gt;getDurationText(0,0);
    //== First argument is source, since the method created is always using one source coordinate set, so this will always be 0 (for now), other parameter is destination index, in order you provided.

**Installation**

1. composer require vivdub/distmatrix:dev-master
2. Once done add following to composer.json psr-4
    "Vivdub\\\\DistMatrix\\\\":"vendor/vivdub/distmatrix"
3. Run composer update

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5568c3f5b95abdc675ec804bf2a2cde427874631134041f5f35f995fc8879fb?d=identicon)[vivdub](/maintainers/vivdub)

### Embed Badge

![Health badge](/badges/vivdub-distmatrix/health.svg)

```
[![Health](https://phpackages.com/badges/vivdub-distmatrix/health.svg)](https://phpackages.com/packages/vivdub-distmatrix)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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