PHPackages                             davit37/php-google-maps-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. davit37/php-google-maps-distance-matrix

ActiveLibrary[API Development](/categories/api)

davit37/php-google-maps-distance-matrix
=======================================

PHP Implementation of the Google Maps Distance Matrix API

1.2.0(3y ago)0580MITPHPPHP &gt;7.2

Since Oct 3Pushed 3y agoCompare

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

READMEChangelog (2)Dependencies (4)Versions (5)Used By (0)

PHP Google Maps Distance Matrix API
===================================

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

This is a simple package that allows access to the Google Maps Distance Matrix API using a (mostly) fluent API. There is support for both the Standard License and Premium/Enterprise License types provided by Google.

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

[](#installation)

Install the package using composer:

add repositories to composer.json

```
 "repositories": [
        {
            "type": "vcs",
            "url": "https://gitlab.com/davit-logique/google-maps-distance-matrix"
        }
    ]

```

add packet to composer.json

```
"davit37/php-google-maps-distance-matrix": "^1.2",

```

Frameworks
----------

[](#frameworks)

At the moment we only have framework compatibility for Laravel. However, we welcome PRs to add further framework specific behavior as long as it doesn't prevent the package working for others, or pull in dependencies that are not optional (suggested).

### Laravel

[](#laravel)

If you are using Laravel then you can use our service provider. If you have Laravel &gt;5.5 then the package will be auto discovered upon install. Else, add the following to your `config/app.php` file:

```
