PHPackages                             dnery/laravel-maps - 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. dnery/laravel-maps

ActiveLibrary[API Development](/categories/api)

dnery/laravel-maps
==================

Simple package to integrate Google Maps WebServices with your Laravel application.

2.1.3(7y ago)52.0k↓40%MITPHPPHP &gt;=7.0

Since Dec 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dyegonery/laravel-maps)[ Packagist](https://packagist.org/packages/dnery/laravel-maps)[ RSS](/packages/dnery-laravel-maps/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (11)Used By (0)

Laravel Maps
============

[](#laravel-maps)

Laravel Maps is a simple package that helps you connect laravel with Google Maps WebServices.

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

[](#installation)

### Composer

[](#composer)

Install this package on your Laravel 5.5+ with the follow command:

```
$ composer require dnery/laravel-maps:2.1.*

```

Or add the package to require object of your composer.json file

```
{
    "require": {
        "dnery/laravel-maps": "2.1.*"
    }
}

```

---

To use this package on Laravel 4, install the older version of the package:

```
$ composer require dnery/laravel-maps:1.0.3

```

---

### Without Composer

[](#without-composer)

Just download the repository and install under the vendor/ folder in your laravel project.

After installing the package in your project, add the package's Service Provider to `app/config/app.php` in the providers section:

```
'Dnery\LaravelMaps\LaravelMapsServiceProvider',

```

Also add the Alias of the LaravelMaps package, in the aliases section:

```
'LaravelMaps'	  => 'Dnery\LaravelMaps\Facades\LaravelMaps',

```

Publish the configuration file of the package in your project:

```
php artisan config:publish dnery/laravel-maps

```

Usage
-----

[](#usage)

First, fill your api\_key (you can find it in your painel at Google Developers Console) in the generated config file, located at `app/config/packages/dnery/laravel-maps/config.php`. After this, all you need to do is initialize the LaravelMaps with the name of the webservice that you want to use.

```
$geocode = Laravel::init('geocode')

```

Currently, LaravelMaps can integrate with 4 webservices from Google Maps:

- Google Maps Distance Matrix API ()

`LaravelMaps::init('distance-matrix');`

- Google Places API Web Service ()

`LaravelMaps::init('places');`

- Google Maps Geocoding Api ()

`LaravelMaps::init('geocode');`

- Google Maps Directions API ()

`LaravelMaps::init('directions');`

When using Geocoding, Directions and Distance Matrix API, just call `$maps->process($params);`- You can find the params for his use in the respective API, at Google. (Links above)

When using Places API, call `$maps->run('method', $params);`

Contributing
------------

[](#contributing)

This is a package that I created and released because of personal need in projects that I maintain. Please, feel free to make pull request and submit issues to help improve this package.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~0 days

Total

10

Last Release

2881d ago

Major Versions

1.03 → 2.0.02018-06-28

PHP version history (2 changes)1.0PHP &gt;=5.4.0

2.1.0PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![dyegonery](https://avatars.githubusercontent.com/u/4934602?v=4)](https://github.com/dyegonery "dyegonery (25 commits)")

### Embed Badge

![Health badge](/badges/dnery-laravel-maps/health.svg)

```
[![Health](https://phpackages.com/badges/dnery-laravel-maps/health.svg)](https://phpackages.com/packages/dnery-laravel-maps)
```

###  Alternatives

[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)

PHPackages © 2026

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