Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Google Map Laravel Package

arcasolutions/google-map

Laravel package providing Google Maps integration for your app, with helpers to generate map views and include the required scripts. Useful for quickly embedding maps and configuring markers or map options within Laravel projects.

View on GitHub
Deep Wiki
Context7

Google Map API v3 integration for PHP 5.6.

Frequently asked questions about Google Map
Does this package work with Laravel 9/10 and PHP 8.x?
No, this package requires PHP 5.6, which is end-of-life and incompatible with Laravel 9/10 or PHP 8.x. You’ll need to either downgrade PHP (not recommended) or replace it with a modern alternative like `google/maps-services-php`.
How do I install and set up this package in Laravel?
Run `composer require arcasolutions/google-map`, then configure your Google Maps API key in the package’s config file. Since it lacks Laravel service providers, you’ll need to manually include the helper class in your views or controllers.
Can I use this package for dynamic maps with markers and custom overlays?
Yes, the package supports basic map configurations like center, zoom, and markers, but it’s limited to Google Maps API v3. For advanced features (e.g., custom overlays, Places API), you may need to extend it manually or switch to a modern SDK.
Is there a way to integrate this with Laravel’s .env for API keys?
No, the package doesn’t natively support Laravel’s `.env` system. You’ll need to manually configure the Google Maps API key in the package’s config file or create a custom wrapper to pull it from `.env`.
What Laravel versions does this package officially support?
The package doesn’t specify Laravel version support, but due to its PHP 5.6 dependency, it’s unlikely to work with Laravel 5.5+ without modifications. Test thoroughly if attempting to use it in older Laravel apps.
Are there any security risks using this outdated package?
Yes, PHP 5.6 is unsupported and vulnerable to security flaws. Using this package exposes your app to risks unless you isolate it in a container or replace it with a maintained alternative like `google/maps-services-php`.
Can I use this package for geocoding or directions API calls?
No, this package only handles static map generation and basic marker configurations. For geocoding or directions, you’ll need to use Google’s official PHP client (`google/maps-services-php`) or their REST API directly.
How do I generate a map in a Blade view using this package?
Load the helper class in your Blade view, then call methods like `GoogleMap::staticMap()` with your desired options (e.g., center coordinates, zoom level). The package will output the HTML and script tags for embedding.
What are the alternatives to this package for Laravel?
For modern Laravel apps, consider `google/maps-services-php` (PHP 8.x compatible) or libraries like `spatie/laravel-google-maps` (if available). For frontend integration, use the official Google Maps JavaScript API with Laravel mix or Vite.
Is this package actively maintained? When was the last update?
The package appears abandoned, with no updates since 2016. Google Maps API v3 is also deprecated, so long-term reliability is questionable. Plan for a replacement if this is critical to your app.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor