Weave 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 Bundle

Google Map Bundle Laravel Package

ivory/google-map-bundle

Ivory Google Map Bundle integrates Google Maps into Symfony applications, providing services and Twig helpers to render maps, markers, info windows, and controls, with configurable map options and geocoding support.

View on GitHub
Deep Wiki
Context7

Google Map API v3 integration for Symfony

Frequently asked questions about Google Map Bundle
Can I use ivory/google-map-bundle in a Laravel application?
Not directly. It is a Symfony bundle that registers through bundles.php and the Symfony service container, and Laravel has no bundle concept or PackageManifest discovery for this package type. There is no Laravel service provider, Blade directive, or published config stub, so installing it as-is is unsupported. A Laravel path exists only as a port around the framework-agnostic ivory/google-map core library.
Does ivory/google-map-bundle support Laravel 10, 11, or 12?
It does not declare Laravel support at any version. The package targets Symfony HttpKernel, the Config component, and Twig integration, so Laravel compatibility is not part of its release matrix. The 6.1.2 patch note only claims it should work fine even though the pipeline is failing on PHP 8.4, which is an unverified assertion rather than a tested compatibility statement.
What is the difference between ivory/google-map-bundle and ivory/google-map?
ivory/google-map is the standalone, framework-agnostic library that provides the Map object model: markers, info windows, controls, overlays, and JSON serialization. ivory/google-map-bundle is a thin Symfony layer that wires that library into the service container and adds Twig helpers. For Laravel, only the core library is realistically reusable.
How do I install and configure ivory/google-map-bundle?
You install it with Composer, but in a Symfony app only: enable the bundle in bundles.php, import config/packages/ivory_google_map.yaml, and set your API key in the bundle configuration. In Laravel nothing registers the bundle automatically, so the install alone produces no working integration. You would instead bind the Ivory Google Map classes in your own service provider and read the key from config/google-map.php sourced from services.google_maps.key.
Is ivory/google-map-bundle still maintained?
It is minimally maintained. Release 6.1.2 confirms the maintainer is still active, but the project has around 9 stars and zero dependents, and the wider Ivory ecosystem has been largely dormant. The bus factor is one, so plan for the possibility of a vendored fork if you commit to it.
Does ivory/google-map-bundle work on PHP 8.4?
The 6.1.2 release note says it should work fine even though the pipeline is failing on PHP 8.4, which means upstream CI is red on that version. There is currently no automated regression signal on PHP 8.4. If your Laravel app runs 8.4, you would be validating compatibility yourself and inheriting the same gap on every future PHP minor bump.
How do I render a Google Map in a Blade template instead of Twig?
The bundle's Twig functions and asset-inclusion helpers have no Blade equivalent, so you would reimplement them. A common approach is to build the Map object with the core library, JSON-serialize it, and pass it to a Blade component such as x-google-map, or expose it through a custom @googleMap directive. Expect roughly 2 to 4 engineer-days for a proof of concept, more if you need CSP nonces or consent gating.
Does Ivory Google Map support markers, info windows, controls, and overlays?
Yes. The underlying library provides a Map object model with markers, info windows, controls, overlays, and map event handling, and it serializes the map configuration to JSON. The API key and map options are configurable through the Symfony bundle configuration. In Laravel you would configure the same options in your own config file and bind them in a service provider.
Is ivory/google-map-bundle production-ready for a high-traffic Laravel site?
There are several production concerns. The library emits legacy google.maps.Marker output rather than AdvancedMarkerElement, which Google has deprecated. It also has no built-in CSP nonce support and no consent gating before the Maps script loads, which is a compliance problem for EU traffic and a security-review flag for most enterprises. Combined with near-zero adoption and a failing PHP 8.4 pipeline, it is a high technical risk.
What are the best alternatives to Ivory Google Map in Laravel?
You can use the framework-agnostic ivory/google-map library directly inside a Laravel service provider and wrap it in a small Blade component. The other option is to skip the dependency entirely and write a roughly 150-line Blade component around the Google Maps JavaScript API. If map state is purely a view concern, a frontend component in Vue, React, or Inertia may be the cleaner owner.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo