abenevaut / laravel-google-maps-client
Google Maps integration and utilities for Laravel applications.
0.1.1
2025-09-21 07:36 UTC
Requires
- php: ^8.3
- abenevaut/laravel-client-infrastructure: ^0.0.2
- abenevaut/laravel-infrastructure: ^0.4.0
- illuminate/container: ^12.0
- illuminate/http: ^12.0
- illuminate/support: ^12.0
Requires (Dev)
- fakerphp/faker: ^1.24
- mockery/mockery: ^1.6
- nikic/php-parser: ^5.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.11
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