abenevaut/laravel-google-maps-client

Google Maps integration and utilities for Laravel applications.

0.1.1 2025-09-21 07:36 UTC

This package is auto-updated.

Last update: 2025-09-21 07:37:43 UTC


README

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