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
Googlmapper

Googlmapper Laravel Package

sdekkers/googlmapper

A Laravel package that wraps the Google Maps JavaScript API in a fluent PHP interface, letting you render maps, markers, info windows, polylines, polygons, and circles straight from controllers or Blade views without hand-writing JavaScript.

View on GitHub
Deep Wiki
Context7

An easy way to integrate Google Maps with Laravel

Frequently asked questions about Googlmapper
How do I install sdekkers/googlmapper in a Laravel app?
Install the package with Composer using composer require sdekkers/googlmapper. Then follow the repository README for service provider registration and any configuration publishing steps. If your Laravel version supports package auto-discovery, the provider may be registered automatically.
Which Laravel versions does googlmapper support?
Laravel version support is defined by the package's composer.json constraints, so check that file and the README before installing. Confirm the required PHP and illuminate/support versions match your application. If you are on an older or very new Laravel release, verify compatibility first.
How do I render a Google Map in a Blade view with googlmapper?
Build the map through the package's fluent PHP interface and output the generated map markup or JavaScript in your Blade template. The README provides the exact method names and rendering examples. Keep map setup in the controller or view depending on how your application is structured.
How do I add markers and info windows to a map?
Googlmapper lets you add markers and attach info window content through its fluent PHP API before rendering the map. Chain the marker and info window calls according to the README examples. This keeps marker and popup definitions in PHP instead of hand-written JavaScript.
Do I need a Google Maps API key to use googlmapper?
Yes, the Google Maps JavaScript API requires a valid API key with the appropriate APIs enabled for your project. Configure the key in the package configuration or pass it through the documented setup path. Also review Google's billing and usage requirements for production deployments.
Can googlmapper draw polylines, polygons, and circles?
Yes, the package supports maps, markers, info windows, polylines, polygons, and circles through a fluent PHP interface. You provide coordinates and shape options in PHP, and the package generates the corresponding Google Maps JavaScript. Check the README for the exact methods and option arrays.
Can I use googlmapper from a controller instead of writing JavaScript?
Yes, googlmapper is designed to let you build maps from controllers or Blade views using PHP. You can configure the map and its overlays in the controller, then pass the result to your view for rendering. This avoids hand-writing the Google Maps JavaScript for common map features.
How do I test Laravel code that uses googlmapper?
Write feature tests that resolve the mapper and assert the generated output, view data, or configuration used to build the map. Avoid depending on live Google Maps API calls in your test suite. If your tests need deterministic output, mock or stub any external boundaries around the package.
Is googlmapper suitable for production Laravel applications?
It can be suitable if the package is compatible with your Laravel version and is actively maintained for your needs. Since it generates client-side Google Maps JavaScript, secure your API key and follow Google's usage and billing rules. Review the repository's recent activity and issue history before committing to production.
What are alternatives to googlmapper for Google Maps in Laravel?
Alternatives include writing directly against the Google Maps JavaScript API, using Livewire or Alpine.js map components, or choosing another Laravel Google Maps wrapper. Compare feature coverage such as markers, info windows, shapes, and configuration options. Also check maintenance status and Laravel version compatibility before switching.
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