Download the PHP package dnery/laravel-maps without Composer
On this page you can find all versions of the php package dnery/laravel-maps. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dnery/laravel-maps
More information about dnery/laravel-maps
Files in dnery/laravel-maps
Package laravel-maps
Short Description Simple package to integrate Google Maps WebServices with your Laravel application.
License MIT
Informations about the package laravel-maps
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:
Or add the package to require object of your composer.json file
To use this package on Laravel 4, install the older version of the package:
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 in the providers section:
Also add the Alias of the LaravelMaps package, in the aliases section:
Publish the configuration file of the package in your project:
Usage
First, fill your api_key (you can find it in your painel at Google Developers Console) in the generated config file, located at . After this, all you need to do is initialize the LaravelMaps with the name of the webservice that you want to use.
Currently, LaravelMaps can integrate with 4 webservices from Google Maps:
-
Google Maps Distance Matrix API (https://developers.google.com/maps/documentation/distance-matrix/?hl=pt-br)
-
Google Places API Web Service (https://developers.google.com/places/web-service/?hl=pt-br)
-
Google Maps Geocoding Api (https://developers.google.com/maps/documentation/geocoding/?hl=pt-br)
- Google Maps Directions API (https://developers.google.com/maps/documentation/directions/?hl=pt-br)
When using Geocoding, Directions and Distance Matrix API, just call
- You can find the params for his use in the respective API, at Google. (Links above)
When using Places API, call
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.