New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

dnery/laravel-maps

Simple package to integrate Google Maps WebServices with your Laravel application.
3,449 5

Larablocks Analysis

dnery/laravel-maps works with Laravel 5 (latest release 2.1.3, Jun 28, 2018), which reached end of life: no more fixes, even for security.

Laravel 4 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Jun 28, 2018)
  • 218 downloads a month (needs 10,000)
  • 5 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jun 28, 2018.
  • No releases in the last 12 months.
  • First released: Dec 18, 2016.
  • Monthly downloads: 218, about the same as six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require dnery/laravel-maps
Latest Version:2.1.3
PHP:>=7.0
Laravel:5
Older releases:4
License:MIT
Last Updated:Sep 4, 2018
Links: GitHub  ·  Packagist
Maintainer: dyegonery

Laravel Maps

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

Installation

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

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

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:

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

LaravelMaps::init('places');

LaravelMaps::init('geocode');

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

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.

Alternatives to dnery/laravel-maps

cornford/googlmapper

An easy way to integrate Google Maps with Laravel.

461,971 456
hugobots/php-geocode

A wrapper around the Google Geocoding API to get different details such as latit...

55,261 2
gowelle/laravel-route-matrix

A Laravel wrapper package for Google Routes API (Compute Routes)

1,303 1

Version History

Version Released PHP Laravel License
2.1.3 >=7.0 5.5.* MIT
2.1.2 >=7.0 5.5.* MIT
2.1.1 >=7.0 5.5.* MIT
2.1.0 >=7.0 5.5.* MIT
2.0.0 >=5.4.0 4.2.* MIT