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 Form Type Bundle Laravel Package

oh/google-map-form-type-bundle

A Symfony bundle that adds a Google Maps form type for selecting locations directly in your forms. Let users pick a point on an interactive map and store latitude/longitude with minimal configuration. Ideal for address, venue, or geolocation fields.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Location-capture UX in internal tools and back-office forms. The bundle's only job is to render a Google Map widget on a Symfony form and write latitude/longitude back into the underlying entity, turning an error-prone "type the coordinates" field into a click-to-place pin. That makes it relevant to admin consoles, ops tooling, and data-entry workflows — not customer-facing product surfaces.
  • Build vs. buy for a narrow, non-differentiating widget. A custom map-picker form type is roughly a day of front-end and a day of form-integration work. Evaluating this package is a ~2-hour spike versus a ~2-day build; the decision hinges almost entirely on whether the host app is already on a compatible Symfony version.
  • Roadmap discovery, not roadmap delivery. Any geo feature — store locator, delivery-zone definition, marketplace listing addresses, venue/event coordinates, property locations — needs a coordinate picker at some layer. This package is a cheap way to prototype and validate the workflow before committing to a geospatial roadmap (geocoding, reverse geocoding, routing, spatial queries), which it does not provide.
  • Reducing manual-entry defects. A visual pin gives immediate confirmation that the stored point matches the intended address, cutting the class of bugs where records silently carry swapped or truncated coordinates.
  • Vendor/stack mismatch as a decision input. The brief frames this as a Laravel/PHP package; it is in fact a Symfony bundle (oh/google-map-form-type-bundle). For a Laravel codebase this is not a drop-in — it is at best a reference implementation to port. That reframes the decision from "adopt" to "borrow the idea."

When to Consider This Package

Consider it when all of the following hold:

  • The host application is Symfony (the FormType + bundle-registration model this targets), not Laravel or a plain-PHP or framework-agnostic codebase.
  • The use case is a small, internal, low-traffic form where a map picker is a convenience rather than a core product experience.
  • A Google Maps JavaScript API key and associated billing account are already in place, and the team accepts Google's terms and tile/data usage for the scenario.
  • You are willing to vendor/fork the code: pin it, own it, and patch it yourself. MIT licensing makes that legal and straightforward.
  • The feature is genuinely just "pick a point." No address autocomplete, no reverse geocoding, no validation that the point corresponds to a real address.

Look elsewhere — or budget for a rewrite — when:

  • Stack or version mismatch. Last release is July 2016, predating Symfony 3.4/4/5/6/7. Bundle conventions, form type signatures, templating, and asset handling have all moved. Expect to modernize the service definition and form type before first render; expect to rewrite the front-end glue if you need anything beyond jQuery-era Google Maps.
  • Maintenance signal is near zero. 15 stars, 0 dependents, no release in roughly a decade. There is no security-response path, no compatibility commitment, and no community to absorb issues. Treat it as sample code, not a dependency.
  • You need geocoding, autocomplete, or validation. Those are the hard parts of location capture and this package does not address them. Pairing it with a geocoding service is additional build and additional vendor cost.
  • Customer-facing or mobile-first requirements. Accessibility, touch interaction, responsive layout, and performance on the public web are outside this package's scope; Google Maps' current JS API and pricing model have also changed materially since 2016.
  • Privacy, cost, or offline constraints rule out Google Maps tiles — a Leaflet or Mapbox implementation is a better starting point.
  • The front end is React/Vue/Inertia/Livewire. A server-rendered Symfony form widget is the wrong integration seam; build the coordinate picker in the client and post the values.

How to Pitch It (Stakeholders)

To executives (one paragraph). This is a tiny, MIT-licensed UI component that lets an operator drop a pin on a map instead of typing latitude and longitude into a form. It is a convenience feature for internal tools, not a strategic asset: the project has been unmaintained since 2016, has negligible adoption, and carries no support or security guarantees. Recommendation: do not take it as a production dependency. Budget a small, time-boxed effort (roughly 1–3 engineer-days) to either modernize a copy of the code for our Symfony version or reimplement the picker directly — the latter is the better long-term bet, and gives us the address-search and validation behavior the package lacks. The upside is modest but real: fewer bad location records and a faster data-entry workflow; the downside of adopting it as-is is a silent liability in a decade-old, unowned dependency.

To engineering (summary).

  • What it is: a Symfony bundle exposing a form type that renders a Google Map and binds a clicked point to latitude/longitude fields. Narrow scope by design.
  • What it is not: Laravel-compatible, geocoding, autocomplete, address validation, or a maintained library. Last tag 2016-07-21; 0 dependents; 15 stars.
  • Recommended handling if we proceed: fork into our own namespace, pin the commit, replace the old bundle service registration with current Symfony configuration, swap the deprecated Google Maps JS usage for the current API (key + billing required), add a form-type test asserting the data transformer round-trips coordinates, and add input validation for coordinate bounds and pin-required cases.
  • Effort estimate: half a day to evaluate in a spike against our Symfony version; 1–3 days to bring a fork to production quality for an internal form. Anything beyond that tips in favor of building it ourselves.
  • Decision gate: only proceed if the consumer is an internal, authenticated form with a Google Maps key already provisioned. If the request is customer-facing, mobile, or Laravel-based, we build the picker natively instead.
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.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource