2017 © Pedro Peláez
 

library laravel-maps

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

image

dnery/laravel-maps

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

  • Thursday, June 28, 2018
  • by dyegonery
  • Repository
  • 1 Watchers
  • 2 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 165 % Grown

The README.md

Laravel Maps

Laravel Maps is a simple package that helps you connect laravel with Google Maps WebServices., (*1)

Installation

Composer

Install this package on your Laravel 5.5+ with the follow command:, (*2)

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

Or add the package to require object of your composer.json file, (*3)

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

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

$ composer require dnery/laravel-maps:1.0.3

Without Composer

Just download the repository and install under the vendor/ folder in your laravel project., (*5)

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

'Dnery\LaravelMaps\LaravelMapsServiceProvider',

Also add the Alias of the LaravelMaps package, in the aliases section:, (*7)

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

Publish the configuration file of the package in your project:, (*8)

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., (*9)

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

Currently, LaravelMaps can integrate with 4 webservices from Google Maps:, (*10)

  • Google Maps Distance Matrix API (https://developers.google.com/maps/documentation/distance-matrix/?hl=pt-br)

LaravelMaps::init('distance-matrix');, (*11)

  • Google Places API Web Service (https://developers.google.com/places/web-service/?hl=pt-br)

LaravelMaps::init('places');, (*12)

  • Google Maps Geocoding Api (https://developers.google.com/maps/documentation/geocoding/?hl=pt-br)

LaravelMaps::init('geocode');, (*13)

  • Google Maps Directions API (https://developers.google.com/maps/documentation/directions/?hl=pt-br)

LaravelMaps::init('directions');, (*14)

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), (*15)

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

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., (*17)

The Versions

28/06 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Dyego Nery

laravel google maps laravel 5 webservice

28/06 2018

2.1.2

2.1.2.0

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

  Sources   Download

MIT

The Requires

 

by Dyego Nery

28/06 2018

2.1.3

2.1.3.0

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

  Sources   Download

MIT

The Requires

 

by Dyego Nery

28/06 2018

2.1.1

2.1.1.0

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

  Sources   Download

MIT

The Requires

 

by Dyego Nery

28/06 2018

2.1.0

2.1.0.0

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

  Sources   Download

MIT

The Requires

 

by Dyego Nery

28/06 2018

2.0.0

2.0.0.0

Simple package to integrate Google Maps WebServices with your Laravel 4 project.

  Sources   Download

MIT

The Requires

 

by Dyego Nery

19/12 2016

1.0.3

1.0.3.0

Simple package to integrate Google Maps WebServices with your Laravel 4 project.

  Sources   Download

MIT

The Requires

 

by Dyego Nery

19/12 2016

1.03

1.03.0.0

Simple package to integrate Google Maps WebServices with your Laravel 4 project.

  Sources   Download

MIT

The Requires

 

by Dyego Nery

19/12 2016

1.0.2

1.0.2.0

Simple package to integrate Google Maps WebServices with your Laravel 4 project.

  Sources   Download

MIT

The Requires

 

by Dyego Nery

18/12 2016

1.0.1

1.0.1.0

Simple package to integrate Google Maps WebServices with your Laravel 4 project.

  Sources   Download

MIT

The Requires

 

by Dyego Nery

18/12 2016

1.0

1.0.0.0

Simple package to integrate Google Maps WebServices with your Laravel 4 project.

  Sources   Download

MIT

The Requires

 

by Dyego Nery