Looking to hire Laravel developers? Try LaraJobs

laravel-google-maps-client maintained by abenevaut

Description
Google Maps integration and utilities for Laravel applications.
Last update
2025/09/21 09:36 (dev-master)
License
Links
Downloads
8

Comments
comments powered by Disqus

laravel-google-maps

Installation

You can install the package via composer:

composer require abenevaut/laravel-google-maps

Add GoogleMaps service to your config/services.php file:

'googlemaps' => [
    'baseUrl' => env('GOOGLE_MAPS_URL', 'https://places.googleapis.com'),
    'api_key' => env('GOOGLE_MAPS_API_KEY'),
    'debug' => env('GOOGLE_MAPS_DEBUG', false),
],

Usage

use abenevaut\GoogleMaps\Facades\GoogleMaps;

// Example: Search for nearby places
$results = GoogleMaps::placesNearby([
    'location' => '48.8588443,2.2943506', // Eiffel Tower
    'radius' => 1500,
    'type' => 'restaurant',
]);

// ... to be continued